{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "ename": "SyntaxError",
     "evalue": "invalid character in identifier (<ipython-input-23-4e545aa9481e>, line 1)",
     "output_type": "error",
     "traceback": [
      "\u001b[1;36m  File \u001b[1;32m\"<ipython-input-23-4e545aa9481e>\"\u001b[1;36m, line \u001b[1;32m1\u001b[0m\n\u001b[1;33m    地理编码、逆地理编码\u001b[0m\n\u001b[1;37m             ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid character in identifier\n"
     ]
    }
   ],
   "source": [
    "地理编码、逆地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "key_huang =\"3073e7938c569425a4e26d04b5c44854\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'count': '1', 'geocodes': [{'formatted_address': '广东省河源市连平县', 'country': '中国', 'province': '广东省', 'citycode': '0762', 'city': '河源市', 'district': '连平县', 'township': [], 'neighborhood': {'name': [], 'type': []}, 'building': {'name': [], 'type': []}, 'adcode': '441623', 'street': [], 'number': [], 'location': '114.488714,24.369588', 'level': '区县'}]}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>formatted_address</th>\n",
       "      <th>country</th>\n",
       "      <th>province</th>\n",
       "      <th>citycode</th>\n",
       "      <th>city</th>\n",
       "      <th>district</th>\n",
       "      <th>township</th>\n",
       "      <th>adcode</th>\n",
       "      <th>street</th>\n",
       "      <th>number</th>\n",
       "      <th>location</th>\n",
       "      <th>level</th>\n",
       "      <th>neighborhood.name</th>\n",
       "      <th>neighborhood.type</th>\n",
       "      <th>building.name</th>\n",
       "      <th>building.type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>广东省河源市连平县</td>\n",
       "      <td>中国</td>\n",
       "      <td>广东省</td>\n",
       "      <td>0762</td>\n",
       "      <td>河源市</td>\n",
       "      <td>连平县</td>\n",
       "      <td>[]</td>\n",
       "      <td>441623</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>114.488714,24.369588</td>\n",
       "      <td>区县</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  formatted_address country province citycode city district township  adcode  \\\n",
       "0         广东省河源市连平县      中国      广东省     0762  河源市      连平县       []  441623   \n",
       "\n",
       "  street number              location level neighborhood.name  \\\n",
       "0     []     []  114.488714,24.369588    区县                []   \n",
       "\n",
       "  neighborhood.type building.name building.type  \n",
       "0                []            []            []  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "河源连平地理编码: 114.488714,24.369588\n"
     ]
    }
   ],
   "source": [
    "# 地理编码\n",
    "def geocode(address,city=None,batch=None,sig=None)->dict:\n",
    "    \"\"\"获取地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/geo?parameters'\n",
    "    params={\n",
    "        'key': key_huang,\n",
    "        'address':address,\n",
    "        'city':city,\n",
    "        'batch':batch,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "河源连平 = geocode(address='广东省河源市连平县')\n",
    "print(河源连平)\n",
    "df_河源连平地理编码 = pd.json_normalize(河源连平['geocodes'])\n",
    "display(df_河源连平地理编码)\n",
    "河源连平地理编码 =河源连平['geocodes'][0]['location']\n",
    "print(\"河源连平地理编码:\",河源连平地理编码)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'regeocode': {'addressComponent': {'city': '河源市', 'province': '广东省', 'adcode': '441623', 'district': '连平县', 'towncode': '441623100000', 'streetNumber': {'number': '1号', 'location': '114.488579,24.3698111', 'direction': '西北', 'distance': '28.3235', 'street': '公园路'}, 'country': '中国', 'township': '元善镇', 'businessAreas': [[]], 'building': {'name': [], 'type': []}, 'neighborhood': {'name': [], 'type': []}, 'citycode': '0762'}, 'formatted_address': '广东省河源市连平县元善镇连平县'}, 'info': 'OK', 'infocode': '10000'}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>status</th>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>info</th>\n",
       "      <td>OK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>infocode</th>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <td>河源市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <td>广东省</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <td>441623</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <td>连平县</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.towncode</th>\n",
       "      <td>441623100000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.number</th>\n",
       "      <td>1号</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.location</th>\n",
       "      <td>114.488579,24.3698111</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.direction</th>\n",
       "      <td>西北</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.distance</th>\n",
       "      <td>28.3235</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.street</th>\n",
       "      <td>公园路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <td>中国</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <td>元善镇</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <td>[[]]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <td>0762</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <td>广东省河源市连平县元善镇连平县</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                       0\n",
       "status                                                                 1\n",
       "info                                                                  OK\n",
       "infocode                                                           10000\n",
       "regeocode.addressComponent.city                                      河源市\n",
       "regeocode.addressComponent.province                                  广东省\n",
       "regeocode.addressComponent.adcode                                 441623\n",
       "regeocode.addressComponent.district                                  连平县\n",
       "regeocode.addressComponent.towncode                         441623100000\n",
       "regeocode.addressComponent.streetNumber.number                        1号\n",
       "regeocode.addressComponent.streetNumber.location   114.488579,24.3698111\n",
       "regeocode.addressComponent.streetNumber.direction                     西北\n",
       "regeocode.addressComponent.streetNumber.distance                 28.3235\n",
       "regeocode.addressComponent.streetNumber.street                       公园路\n",
       "regeocode.addressComponent.country                                    中国\n",
       "regeocode.addressComponent.township                                  元善镇\n",
       "regeocode.addressComponent.businessAreas                            [[]]\n",
       "regeocode.addressComponent.building.name                              []\n",
       "regeocode.addressComponent.building.type                              []\n",
       "regeocode.addressComponent.neighborhood.name                          []\n",
       "regeocode.addressComponent.neighborhood.type                          []\n",
       "regeocode.addressComponent.citycode                                 0762\n",
       "regeocode.formatted_address                              广东省河源市连平县元善镇连平县"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 逆地理编码分析\n",
    "def regeocode(location,poitype=None,radius=None,extensions=\"base\",batch=False,roadlevel=None,sig=None,homeorcorp=None)->dict:\n",
    "    \"\"\"获取逆地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "    params={\n",
    "        'key': key_huang,\n",
    "        'location':location,\n",
    "        'poitype':poitype,\n",
    "        'radius':radius,\n",
    "        'extensions':extensions,\n",
    "        'batch':batch,\n",
    "        'roadlevel':roadlevel,\n",
    "        'homeorcorp':homeorcorp,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "河源连平逆地理编码 = regeocode(河源连平地理编码)\n",
    "print(河源连平逆地理编码)\n",
    "df_河源连平逆地理编码 = pd.json_normalize(河源连平逆地理编码).T\n",
    "display(df_河源连平逆地理编码)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'regeocode': {'roads': [{'id': '0762G50F044004601440', 'location': '114.49,24.3694', 'direction': '西', 'name': '环城西路', 'distance': '89.3607'}, {'id': '0762G50F04400458', 'location': '114.489,24.3682', 'direction': '北', 'name': '西门路', 'distance': '160.518'}, {'id': '0762G50F044004820', 'location': '114.49,24.3681', 'direction': '西北', 'name': '环城南路', 'distance': '190.81'}], 'roadinters': [{'second_name': '环城南路', 'first_id': '0762G50F044004535', 'second_id': '0762G50F044004820', 'location': '114.4896069,24.36807722', 'distance': '190.81', 'first_name': '西街', 'direction': '西北'}], 'formatted_address': '广东省河源市连平县元善镇连平县', 'addressComponent': {'city': '河源市', 'province': '广东省', 'adcode': '441623', 'district': '连平县', 'towncode': '441623100000', 'streetNumber': {'number': '1号', 'location': '114.488579,24.3698111', 'direction': '西北', 'distance': '28.3235', 'street': '公园路'}, 'country': '中国', 'township': '元善镇', 'businessAreas': [[]], 'building': {'name': [], 'type': []}, 'neighborhood': {'name': [], 'type': []}, 'citycode': '0762'}, 'aois': [], 'pois': [{'id': 'B02FA01R13', 'direction': '西南', 'businessarea': [], 'address': '公园路4号', 'poiweight': '0.48', 'name': '连平县图书馆', 'location': '114.488413,24.368873', 'distance': '85.1474', 'tel': '0762-4332358', 'type': '科教文化服务;图书馆;图书馆'}, {'id': 'B02FA0027B', 'direction': '西南', 'businessarea': [], 'address': '公园路1号', 'poiweight': '0.470326', 'name': '连平县人民政府', 'location': '114.488623,24.369451', 'distance': '17.7919', 'tel': '0762-4332240', 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}, {'id': 'B02FA019B2', 'direction': '西北', 'businessarea': [], 'address': '元善镇公园路1号', 'poiweight': '0.162918', 'name': '中共广东省连平县委员会', 'location': '114.488529,24.369779', 'distance': '28.3102', 'tel': '0762-4332519', 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}, {'id': 'B02FA0072F', 'direction': '东', 'businessarea': [], 'address': '元善镇环城西路10号', 'poiweight': '0.334689', 'name': '连平县林业局', 'location': '114.489731,24.369744', 'distance': '104.484', 'tel': '0762-4332335', 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}, {'id': 'B02FA00423', 'direction': '东南', 'businessarea': [], 'address': '元善镇环城西路5号', 'poiweight': '0.264391', 'name': '连平县水务局', 'location': '114.489852,24.369007', 'distance': '132.153', 'tel': '0762-4332230', 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}, {'id': 'B02FA0OFH5', 'direction': '东南', 'businessarea': [], 'address': '西街与连平步行街交叉口西100米', 'poiweight': '0.201372', 'name': '广东农信连平农商银行', 'location': '114.489888,24.368726', 'distance': '152.749', 'tel': [], 'type': '金融保险服务;银行;农村商业银行'}, {'id': 'B02FA013FQ', 'direction': '东', 'businessarea': [], 'address': '元善镇环城西路10号', 'poiweight': '0.168686', 'name': '连平县公安局森林分局', 'location': '114.489728,24.369791', 'distance': '105.18', 'tel': '0762-4332336', 'type': '政府机构及社会团体;公检法机构;公安警察'}, {'id': 'B02FA00371', 'direction': '南', 'businessarea': [], 'address': '元善镇公园东路1号', 'poiweight': '0.153618', 'name': '连平县体育事业局', 'location': '114.488871,24.368341', 'distance': '139.572', 'tel': '0762-4329811;0762-4332420', 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}, {'id': 'B02FA01P5N', 'direction': '西', 'businessarea': [], 'address': '公园路2号', 'poiweight': '0.162918', 'name': '连平县普法办公室', 'location': '114.488394,24.369500', 'distance': '33.8603', 'tel': [], 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}, {'id': 'B02FA0O2A3', 'direction': '东北', 'businessarea': [], 'address': '环城西路前进八街口', 'poiweight': '0.164968', 'name': '华怡楼', 'location': '114.489428,24.370994', 'distance': '172.255', 'tel': [], 'type': '商务住宅;楼宇;商住两用楼宇'}, {'id': 'B02FA013H9', 'direction': '东', 'businessarea': [], 'address': '元善镇环城西路10号', 'poiweight': '0.144219', 'name': '连平县生态公益林管理中心', 'location': '114.489731,24.369789', 'distance': '105.429', 'tel': '0762-4332336', 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}, {'id': 'B02FA02BO8', 'direction': '东', 'businessarea': [], 'address': '环城西路7号农业局', 'poiweight': '0.138593', 'name': '连平县农产品检验检测中心', 'location': '114.489815,24.369292', 'distance': '116.293', 'tel': [], 'type': '政府机构及社会团体;公检法机构;公证鉴定机构'}, {'id': 'B02FA02BOE', 'direction': '东南', 'businessarea': [], 'address': '环城西路1号附近', 'poiweight': '0.162918', 'name': '连平县现代标准农田建设办公室', 'location': '114.489434,24.369245', 'distance': '82.3051', 'tel': [], 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}, {'id': 'B02FA01P5R', 'direction': '西南', 'businessarea': [], 'address': '公园路', 'poiweight': '0.162918', 'name': '连平县维护稳定工作领导小组办公室', 'location': '114.488402,24.368903', 'distance': '82.4657', 'tel': [], 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}, {'id': 'B02FA00613', 'direction': '东南', 'businessarea': [], 'address': '元善镇环城西路5号', 'poiweight': '0.118602', 'name': '连平县水土保持预防监督站', 'location': '114.489848,24.369031', 'distance': '130.513', 'tel': [], 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}, {'id': 'B02FA02A2G', 'direction': '东北', 'businessarea': [], 'address': '北门路与环城西路交叉口南150米', 'poiweight': '0.136554', 'name': '连平县老龄工作委员会办公室', 'location': '114.489116,24.370482', 'distance': '107.426', 'tel': [], 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}, {'id': 'B02FA012TT', 'direction': '东', 'businessarea': [], 'address': '元善镇环城西路20号', 'poiweight': '0.360192', 'name': '连平宾馆', 'location': '114.489292,24.369764', 'distance': '61.731', 'tel': '0762-4332513;0762-4332330', 'type': '住宿服务;宾馆酒店;宾馆酒店'}, {'id': 'B02FA00CA3', 'direction': '东南', 'businessarea': [], 'address': '新村路与环城南路交叉口北50米', 'poiweight': '0.131273', 'name': '连宾大厦', 'location': '114.490415,24.367333', 'distance': '304.253', 'tel': '0762-4332330', 'type': '商务住宅;楼宇;商务写字楼'}, {'id': 'B02FA0OVJ8', 'direction': '西南', 'businessarea': [], 'address': '西门路与116乡道交叉口西50米', 'poiweight': '0.082639', 'name': '连平县元善动物卫生监督分所', 'location': '114.487051,24.367440', 'distance': '292.274', 'tel': [], 'type': '政府机构及社会团体;政府机关;乡镇级政府及事业单位'}, {'id': 'B02FA01HY1', 'direction': '东南', 'businessarea': [], 'address': '连平县', 'poiweight': '0.333831', 'name': '城西村', 'location': '114.489985,24.368894', 'distance': '150.12', 'tel': [], 'type': '地名地址信息;普通地名;村庄级地名'}, {'id': 'B02FA01HZE', 'direction': '东北', 'businessarea': [], 'address': '连平县', 'poiweight': '0.34294', 'name': '前进村', 'location': '114.490353,24.370355', 'distance': '186.657', 'tel': [], 'type': '地名地址信息;普通地名;村庄级地名'}, {'id': 'B02FA01VAB', 'direction': 'Center', 'businessarea': [], 'address': '连平县', 'poiweight': '0.640765', 'name': '连平县', 'location': '114.488714,24.369588', 'distance': '0', 'tel': [], 'type': '地名地址信息;普通地名;区县级地名'}, {'id': 'B0FFH6WJ2G', 'direction': '东南', 'businessarea': [], 'address': '环城南路与连平步行街交叉口北50米', 'poiweight': '0.183434', 'name': '爱心大药房(步行街店)', 'location': '114.490141,24.367526', 'distance': '271.059', 'tel': '0762-4327763', 'type': '医疗保健服务;医药保健销售店;药房'}, {'id': 'B0FFHTVXYS', 'direction': '西北', 'businessarea': [], 'address': [], 'poiweight': '0.186337', 'name': '华裕苑', 'location': '114.488015,24.370784', 'distance': '150.646', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B02FA0112C', 'direction': '北', 'businessarea': [], 'address': '元善镇北门路13号之八', 'poiweight': '0.287856', 'name': '连平县第一小学', 'location': '114.488133,24.372837', 'distance': '366.036', 'tel': '0762-4321950', 'type': '科教文化服务;学校;小学'}, {'id': 'B02FA006AF', 'direction': '东南', 'businessarea': [], 'address': '新村路与环城南路交叉口南50米', 'poiweight': '0.102092', 'name': '连平县结核病防治所', 'location': '114.490400,24.366899', 'distance': '344.372', 'tel': [], 'type': '医疗保健服务;疾病预防机构;疾病预防'}, {'id': 'B02FA02BOA', 'direction': '北', 'businessarea': [], 'address': '北园西直街与环城北路交叉口西100米', 'poiweight': '0.382526', 'name': '锦绣花苑(环城北路)', 'location': '114.489382,24.372392', 'distance': '319.051', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B0FFGQJ80I', 'direction': '西南', 'businessarea': [], 'address': '连平县', 'poiweight': '0.119721', 'name': '鹤湖桥', 'location': '114.487189,24.366826', 'distance': '343.787', 'tel': [], 'type': '地名地址信息;交通地名;桥'}, {'id': 'B0FFH0C86P', 'direction': '东南', 'businessarea': [], 'address': '元善镇财富广场', 'poiweight': '0.183323', 'name': '大参林(连宾大厦西南)', 'location': '114.490158,24.367117', 'distance': '311.299', 'tel': [], 'type': '医疗保健服务;医药保健销售店;药房'}, {'id': 'B02FA01P34', 'direction': '东北', 'businessarea': [], 'address': '环城北路11号', 'poiweight': '0.088436', 'name': '连平县委老干部局', 'location': '114.490173,24.372809', 'distance': '387.455', 'tel': '0762-4332656', 'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'}]}, 'info': 'OK', 'infocode': '10000'}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>regeocode.roads</th>\n",
       "      <th>regeocode.roadinters</th>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <th>...</th>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <th>regeocode.aois</th>\n",
       "      <th>regeocode.pois</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>[{'id': '0762G50F044004601440', 'location': '1...</td>\n",
       "      <td>[{'second_name': '环城南路', 'first_id': '0762G50F...</td>\n",
       "      <td>广东省河源市连平县元善镇连平县</td>\n",
       "      <td>河源市</td>\n",
       "      <td>广东省</td>\n",
       "      <td>441623</td>\n",
       "      <td>连平县</td>\n",
       "      <td>...</td>\n",
       "      <td>中国</td>\n",
       "      <td>元善镇</td>\n",
       "      <td>[[]]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0762</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': 'B02FA01R13', 'direction': '西南', 'busi...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1 rows × 26 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode                                    regeocode.roads  \\\n",
       "0      1   OK    10000  [{'id': '0762G50F044004601440', 'location': '1...   \n",
       "\n",
       "                                regeocode.roadinters  \\\n",
       "0  [{'second_name': '环城南路', 'first_id': '0762G50F...   \n",
       "\n",
       "  regeocode.formatted_address regeocode.addressComponent.city  \\\n",
       "0             广东省河源市连平县元善镇连平县                             河源市   \n",
       "\n",
       "  regeocode.addressComponent.province regeocode.addressComponent.adcode  \\\n",
       "0                                 广东省                            441623   \n",
       "\n",
       "  regeocode.addressComponent.district  ... regeocode.addressComponent.country  \\\n",
       "0                                 连平县  ...                                 中国   \n",
       "\n",
       "  regeocode.addressComponent.township  \\\n",
       "0                                 元善镇   \n",
       "\n",
       "  regeocode.addressComponent.businessAreas  \\\n",
       "0                                     [[]]   \n",
       "\n",
       "  regeocode.addressComponent.building.name  \\\n",
       "0                                       []   \n",
       "\n",
       "  regeocode.addressComponent.building.type  \\\n",
       "0                                       []   \n",
       "\n",
       "  regeocode.addressComponent.neighborhood.name  \\\n",
       "0                                           []   \n",
       "\n",
       "  regeocode.addressComponent.neighborhood.type  \\\n",
       "0                                           []   \n",
       "\n",
       "  regeocode.addressComponent.citycode regeocode.aois  \\\n",
       "0                                0762             []   \n",
       "\n",
       "                                      regeocode.pois  \n",
       "0  [{'id': 'B02FA01R13', 'direction': '西南', 'busi...  \n",
       "\n",
       "[1 rows x 26 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 全部逆地理编码分析\n",
    "河源连平逆地理编码_all = regeocode(河源连平地理编码,extensions=\"all\")\n",
    "print(河源连平逆地理编码_all)\n",
    "df_河源连平逆地理编码_all = pd.json_normalize(河源连平逆地理编码_all)\n",
    "display(df_河源连平逆地理编码_all)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>direction</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0762G50F044004601440</td>\n",
       "      <td>114.49,24.3694</td>\n",
       "      <td>西</td>\n",
       "      <td>环城西路</td>\n",
       "      <td>89.3607</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0762G50F04400458</td>\n",
       "      <td>114.489,24.3682</td>\n",
       "      <td>北</td>\n",
       "      <td>西门路</td>\n",
       "      <td>160.518</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0762G50F044004820</td>\n",
       "      <td>114.49,24.3681</td>\n",
       "      <td>西北</td>\n",
       "      <td>环城南路</td>\n",
       "      <td>190.81</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                     id         location direction  name distance\n",
       "0  0762G50F044004601440   114.49,24.3694         西  环城西路  89.3607\n",
       "1      0762G50F04400458  114.489,24.3682         北   西门路  160.518\n",
       "2     0762G50F044004820   114.49,24.3681        西北  环城南路   190.81"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>second_name</th>\n",
       "      <th>first_id</th>\n",
       "      <th>second_id</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>first_name</th>\n",
       "      <th>direction</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>环城南路</td>\n",
       "      <td>0762G50F044004535</td>\n",
       "      <td>0762G50F044004820</td>\n",
       "      <td>114.4896069,24.36807722</td>\n",
       "      <td>190.81</td>\n",
       "      <td>西街</td>\n",
       "      <td>西北</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  second_name           first_id          second_id                 location  \\\n",
       "0        环城南路  0762G50F044004535  0762G50F044004820  114.4896069,24.36807722   \n",
       "\n",
       "  distance first_name direction  \n",
       "0   190.81         西街        西北  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: []\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>direction</th>\n",
       "      <th>businessarea</th>\n",
       "      <th>address</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>name</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>tel</th>\n",
       "      <th>type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B02FA01R13</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>公园路4号</td>\n",
       "      <td>0.48</td>\n",
       "      <td>连平县图书馆</td>\n",
       "      <td>114.488413,24.368873</td>\n",
       "      <td>85.1474</td>\n",
       "      <td>0762-4332358</td>\n",
       "      <td>科教文化服务;图书馆;图书馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B02FA0027B</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>公园路1号</td>\n",
       "      <td>0.470326</td>\n",
       "      <td>连平县人民政府</td>\n",
       "      <td>114.488623,24.369451</td>\n",
       "      <td>17.7919</td>\n",
       "      <td>0762-4332240</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B02FA019B2</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>元善镇公园路1号</td>\n",
       "      <td>0.162918</td>\n",
       "      <td>中共广东省连平县委员会</td>\n",
       "      <td>114.488529,24.369779</td>\n",
       "      <td>28.3102</td>\n",
       "      <td>0762-4332519</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B02FA0072F</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>元善镇环城西路10号</td>\n",
       "      <td>0.334689</td>\n",
       "      <td>连平县林业局</td>\n",
       "      <td>114.489731,24.369744</td>\n",
       "      <td>104.484</td>\n",
       "      <td>0762-4332335</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B02FA00423</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>元善镇环城西路5号</td>\n",
       "      <td>0.264391</td>\n",
       "      <td>连平县水务局</td>\n",
       "      <td>114.489852,24.369007</td>\n",
       "      <td>132.153</td>\n",
       "      <td>0762-4332230</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B02FA0OFH5</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>西街与连平步行街交叉口西100米</td>\n",
       "      <td>0.201372</td>\n",
       "      <td>广东农信连平农商银行</td>\n",
       "      <td>114.489888,24.368726</td>\n",
       "      <td>152.749</td>\n",
       "      <td>[]</td>\n",
       "      <td>金融保险服务;银行;农村商业银行</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B02FA013FQ</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>元善镇环城西路10号</td>\n",
       "      <td>0.168686</td>\n",
       "      <td>连平县公安局森林分局</td>\n",
       "      <td>114.489728,24.369791</td>\n",
       "      <td>105.18</td>\n",
       "      <td>0762-4332336</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B02FA00371</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>元善镇公园东路1号</td>\n",
       "      <td>0.153618</td>\n",
       "      <td>连平县体育事业局</td>\n",
       "      <td>114.488871,24.368341</td>\n",
       "      <td>139.572</td>\n",
       "      <td>0762-4329811;0762-4332420</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B02FA01P5N</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>公园路2号</td>\n",
       "      <td>0.162918</td>\n",
       "      <td>连平县普法办公室</td>\n",
       "      <td>114.488394,24.369500</td>\n",
       "      <td>33.8603</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B02FA0O2A3</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城西路前进八街口</td>\n",
       "      <td>0.164968</td>\n",
       "      <td>华怡楼</td>\n",
       "      <td>114.489428,24.370994</td>\n",
       "      <td>172.255</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;楼宇;商住两用楼宇</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B02FA013H9</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>元善镇环城西路10号</td>\n",
       "      <td>0.144219</td>\n",
       "      <td>连平县生态公益林管理中心</td>\n",
       "      <td>114.489731,24.369789</td>\n",
       "      <td>105.429</td>\n",
       "      <td>0762-4332336</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B02FA02BO8</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城西路7号农业局</td>\n",
       "      <td>0.138593</td>\n",
       "      <td>连平县农产品检验检测中心</td>\n",
       "      <td>114.489815,24.369292</td>\n",
       "      <td>116.293</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公证鉴定机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B02FA02BOE</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城西路1号附近</td>\n",
       "      <td>0.162918</td>\n",
       "      <td>连平县现代标准农田建设办公室</td>\n",
       "      <td>114.489434,24.369245</td>\n",
       "      <td>82.3051</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B02FA01P5R</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>公园路</td>\n",
       "      <td>0.162918</td>\n",
       "      <td>连平县维护稳定工作领导小组办公室</td>\n",
       "      <td>114.488402,24.368903</td>\n",
       "      <td>82.4657</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B02FA00613</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>元善镇环城西路5号</td>\n",
       "      <td>0.118602</td>\n",
       "      <td>连平县水土保持预防监督站</td>\n",
       "      <td>114.489848,24.369031</td>\n",
       "      <td>130.513</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B02FA02A2G</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>北门路与环城西路交叉口南150米</td>\n",
       "      <td>0.136554</td>\n",
       "      <td>连平县老龄工作委员会办公室</td>\n",
       "      <td>114.489116,24.370482</td>\n",
       "      <td>107.426</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B02FA012TT</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>元善镇环城西路20号</td>\n",
       "      <td>0.360192</td>\n",
       "      <td>连平宾馆</td>\n",
       "      <td>114.489292,24.369764</td>\n",
       "      <td>61.731</td>\n",
       "      <td>0762-4332513;0762-4332330</td>\n",
       "      <td>住宿服务;宾馆酒店;宾馆酒店</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B02FA00CA3</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>新村路与环城南路交叉口北50米</td>\n",
       "      <td>0.131273</td>\n",
       "      <td>连宾大厦</td>\n",
       "      <td>114.490415,24.367333</td>\n",
       "      <td>304.253</td>\n",
       "      <td>0762-4332330</td>\n",
       "      <td>商务住宅;楼宇;商务写字楼</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B02FA0OVJ8</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>西门路与116乡道交叉口西50米</td>\n",
       "      <td>0.082639</td>\n",
       "      <td>连平县元善动物卫生监督分所</td>\n",
       "      <td>114.487051,24.367440</td>\n",
       "      <td>292.274</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;乡镇级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B02FA01HY1</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>连平县</td>\n",
       "      <td>0.333831</td>\n",
       "      <td>城西村</td>\n",
       "      <td>114.489985,24.368894</td>\n",
       "      <td>150.12</td>\n",
       "      <td>[]</td>\n",
       "      <td>地名地址信息;普通地名;村庄级地名</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>B02FA01HZE</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>连平县</td>\n",
       "      <td>0.34294</td>\n",
       "      <td>前进村</td>\n",
       "      <td>114.490353,24.370355</td>\n",
       "      <td>186.657</td>\n",
       "      <td>[]</td>\n",
       "      <td>地名地址信息;普通地名;村庄级地名</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>B02FA01VAB</td>\n",
       "      <td>Center</td>\n",
       "      <td>[]</td>\n",
       "      <td>连平县</td>\n",
       "      <td>0.640765</td>\n",
       "      <td>连平县</td>\n",
       "      <td>114.488714,24.369588</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>地名地址信息;普通地名;区县级地名</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>B0FFH6WJ2G</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城南路与连平步行街交叉口北50米</td>\n",
       "      <td>0.183434</td>\n",
       "      <td>爱心大药房(步行街店)</td>\n",
       "      <td>114.490141,24.367526</td>\n",
       "      <td>271.059</td>\n",
       "      <td>0762-4327763</td>\n",
       "      <td>医疗保健服务;医药保健销售店;药房</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>B0FFHTVXYS</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.186337</td>\n",
       "      <td>华裕苑</td>\n",
       "      <td>114.488015,24.370784</td>\n",
       "      <td>150.646</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>B02FA0112C</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>元善镇北门路13号之八</td>\n",
       "      <td>0.287856</td>\n",
       "      <td>连平县第一小学</td>\n",
       "      <td>114.488133,24.372837</td>\n",
       "      <td>366.036</td>\n",
       "      <td>0762-4321950</td>\n",
       "      <td>科教文化服务;学校;小学</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>B02FA006AF</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>新村路与环城南路交叉口南50米</td>\n",
       "      <td>0.102092</td>\n",
       "      <td>连平县结核病防治所</td>\n",
       "      <td>114.490400,24.366899</td>\n",
       "      <td>344.372</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;疾病预防机构;疾病预防</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>B02FA02BOA</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>北园西直街与环城北路交叉口西100米</td>\n",
       "      <td>0.382526</td>\n",
       "      <td>锦绣花苑(环城北路)</td>\n",
       "      <td>114.489382,24.372392</td>\n",
       "      <td>319.051</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>B0FFGQJ80I</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>连平县</td>\n",
       "      <td>0.119721</td>\n",
       "      <td>鹤湖桥</td>\n",
       "      <td>114.487189,24.366826</td>\n",
       "      <td>343.787</td>\n",
       "      <td>[]</td>\n",
       "      <td>地名地址信息;交通地名;桥</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>B0FFH0C86P</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>元善镇财富广场</td>\n",
       "      <td>0.183323</td>\n",
       "      <td>大参林(连宾大厦西南)</td>\n",
       "      <td>114.490158,24.367117</td>\n",
       "      <td>311.299</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;医药保健销售店;药房</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>B02FA01P34</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城北路11号</td>\n",
       "      <td>0.088436</td>\n",
       "      <td>连平县委老干部局</td>\n",
       "      <td>114.490173,24.372809</td>\n",
       "      <td>387.455</td>\n",
       "      <td>0762-4332656</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id direction businessarea             address poiweight  \\\n",
       "0   B02FA01R13        西南           []               公园路4号      0.48   \n",
       "1   B02FA0027B        西南           []               公园路1号  0.470326   \n",
       "2   B02FA019B2        西北           []            元善镇公园路1号  0.162918   \n",
       "3   B02FA0072F         东           []          元善镇环城西路10号  0.334689   \n",
       "4   B02FA00423        东南           []           元善镇环城西路5号  0.264391   \n",
       "5   B02FA0OFH5        东南           []    西街与连平步行街交叉口西100米  0.201372   \n",
       "6   B02FA013FQ         东           []          元善镇环城西路10号  0.168686   \n",
       "7   B02FA00371         南           []           元善镇公园东路1号  0.153618   \n",
       "8   B02FA01P5N         西           []               公园路2号  0.162918   \n",
       "9   B02FA0O2A3        东北           []           环城西路前进八街口  0.164968   \n",
       "10  B02FA013H9         东           []          元善镇环城西路10号  0.144219   \n",
       "11  B02FA02BO8         东           []           环城西路7号农业局  0.138593   \n",
       "12  B02FA02BOE        东南           []            环城西路1号附近  0.162918   \n",
       "13  B02FA01P5R        西南           []                 公园路  0.162918   \n",
       "14  B02FA00613        东南           []           元善镇环城西路5号  0.118602   \n",
       "15  B02FA02A2G        东北           []    北门路与环城西路交叉口南150米  0.136554   \n",
       "16  B02FA012TT         东           []          元善镇环城西路20号  0.360192   \n",
       "17  B02FA00CA3        东南           []     新村路与环城南路交叉口北50米  0.131273   \n",
       "18  B02FA0OVJ8        西南           []    西门路与116乡道交叉口西50米  0.082639   \n",
       "19  B02FA01HY1        东南           []                 连平县  0.333831   \n",
       "20  B02FA01HZE        东北           []                 连平县   0.34294   \n",
       "21  B02FA01VAB    Center           []                 连平县  0.640765   \n",
       "22  B0FFH6WJ2G        东南           []   环城南路与连平步行街交叉口北50米  0.183434   \n",
       "23  B0FFHTVXYS        西北           []                  []  0.186337   \n",
       "24  B02FA0112C         北           []         元善镇北门路13号之八  0.287856   \n",
       "25  B02FA006AF        东南           []     新村路与环城南路交叉口南50米  0.102092   \n",
       "26  B02FA02BOA         北           []  北园西直街与环城北路交叉口西100米  0.382526   \n",
       "27  B0FFGQJ80I        西南           []                 连平县  0.119721   \n",
       "28  B0FFH0C86P        东南           []             元善镇财富广场  0.183323   \n",
       "29  B02FA01P34        东北           []             环城北路11号  0.088436   \n",
       "\n",
       "                name              location distance  \\\n",
       "0             连平县图书馆  114.488413,24.368873  85.1474   \n",
       "1            连平县人民政府  114.488623,24.369451  17.7919   \n",
       "2        中共广东省连平县委员会  114.488529,24.369779  28.3102   \n",
       "3             连平县林业局  114.489731,24.369744  104.484   \n",
       "4             连平县水务局  114.489852,24.369007  132.153   \n",
       "5         广东农信连平农商银行  114.489888,24.368726  152.749   \n",
       "6         连平县公安局森林分局  114.489728,24.369791   105.18   \n",
       "7           连平县体育事业局  114.488871,24.368341  139.572   \n",
       "8           连平县普法办公室  114.488394,24.369500  33.8603   \n",
       "9                华怡楼  114.489428,24.370994  172.255   \n",
       "10      连平县生态公益林管理中心  114.489731,24.369789  105.429   \n",
       "11      连平县农产品检验检测中心  114.489815,24.369292  116.293   \n",
       "12    连平县现代标准农田建设办公室  114.489434,24.369245  82.3051   \n",
       "13  连平县维护稳定工作领导小组办公室  114.488402,24.368903  82.4657   \n",
       "14      连平县水土保持预防监督站  114.489848,24.369031  130.513   \n",
       "15     连平县老龄工作委员会办公室  114.489116,24.370482  107.426   \n",
       "16              连平宾馆  114.489292,24.369764   61.731   \n",
       "17              连宾大厦  114.490415,24.367333  304.253   \n",
       "18     连平县元善动物卫生监督分所  114.487051,24.367440  292.274   \n",
       "19               城西村  114.489985,24.368894   150.12   \n",
       "20               前进村  114.490353,24.370355  186.657   \n",
       "21               连平县  114.488714,24.369588        0   \n",
       "22       爱心大药房(步行街店)  114.490141,24.367526  271.059   \n",
       "23               华裕苑  114.488015,24.370784  150.646   \n",
       "24           连平县第一小学  114.488133,24.372837  366.036   \n",
       "25         连平县结核病防治所  114.490400,24.366899  344.372   \n",
       "26        锦绣花苑(环城北路)  114.489382,24.372392  319.051   \n",
       "27               鹤湖桥  114.487189,24.366826  343.787   \n",
       "28       大参林(连宾大厦西南)  114.490158,24.367117  311.299   \n",
       "29          连平县委老干部局  114.490173,24.372809  387.455   \n",
       "\n",
       "                          tel                       type  \n",
       "0                0762-4332358             科教文化服务;图书馆;图书馆  \n",
       "1                0762-4332240  政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "2                0762-4332519  政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "3                0762-4332335  政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "4                0762-4332230  政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "5                          []           金融保险服务;银行;农村商业银行  \n",
       "6                0762-4332336       政府机构及社会团体;公检法机构;公安警察  \n",
       "7   0762-4329811;0762-4332420  政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "8                          []  政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "9                          []             商务住宅;楼宇;商住两用楼宇  \n",
       "10               0762-4332336  政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "11                         []     政府机构及社会团体;公检法机构;公证鉴定机构  \n",
       "12                         []  政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "13                         []  政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "14                         []  政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "15                         []  政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "16  0762-4332513;0762-4332330             住宿服务;宾馆酒店;宾馆酒店  \n",
       "17               0762-4332330              商务住宅;楼宇;商务写字楼  \n",
       "18                         []  政府机构及社会团体;政府机关;乡镇级政府及事业单位  \n",
       "19                         []          地名地址信息;普通地名;村庄级地名  \n",
       "20                         []          地名地址信息;普通地名;村庄级地名  \n",
       "21                         []          地名地址信息;普通地名;区县级地名  \n",
       "22               0762-4327763          医疗保健服务;医药保健销售店;药房  \n",
       "23                         []              商务住宅;住宅区;住宅小区  \n",
       "24               0762-4321950               科教文化服务;学校;小学  \n",
       "25                         []         医疗保健服务;疾病预防机构;疾病预防  \n",
       "26                         []              商务住宅;住宅区;住宅小区  \n",
       "27                         []              地名地址信息;交通地名;桥  \n",
       "28                         []          医疗保健服务;医药保健销售店;药房  \n",
       "29               0762-4332656  政府机构及社会团体;政府机关;区县级政府及事业单位  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# A-3 分析细节\n",
    "roads = pd.json_normalize(河源连平逆地理编码_all['regeocode']['roads'])\n",
    "roadinters = pd.json_normalize(河源连平逆地理编码_all['regeocode']['roadinters'])\n",
    "aois = pd.json_normalize(河源连平逆地理编码_all['regeocode']['aois'])\n",
    "pois = pd.json_normalize(河源连平逆地理编码_all['regeocode']['pois'])\n",
    "display(roads,roadinters,aois,pois)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    " 步行路径规划（API基本流程）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "metadata": {},
   "outputs": [],
   "source": [
    "# B-1 准备base url、params、response.json（） \n",
    "def walking(origin,destination,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)中大南方_location: 113.679287,23.632575 (终点)街口地铁站_location: 113.593503,23.530857\n"
     ]
    }
   ],
   "source": [
    "# B-2 准备walking 参数\n",
    "街口地铁站 = geocode('广东省广州市从化区街口地铁站')\n",
    "街口地铁站_location = 街口地铁站['geocodes'][0]['location']\n",
    "中大南方_location = 中大南方['geocodes'][0]['location']\n",
    "print(\"(起点)中大南方_location:\",中大南方_location,\"(终点)街口地铁站_location:\",街口地铁站_location)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 80,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>walk_type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>向南步行161米右转</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>161</td>\n",
       "      <td>129</td>\n",
       "      <td>113.679592,23.632088;113.679609,23.631003;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>向西步行99米左转</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>99</td>\n",
       "      <td>79</td>\n",
       "      <td>113.67964,23.630634;113.679362,23.630521;113.6...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>向南步行237米左转</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>237</td>\n",
       "      <td>190</td>\n",
       "      <td>113.678711,23.63036;113.678711,23.62934;113.67...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>向南步行498米向右前方行走</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>498</td>\n",
       "      <td>398</td>\n",
       "      <td>113.678273,23.628368;113.678572,23.628338;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>向西南步行715米左转</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>715</td>\n",
       "      <td>572</td>\n",
       "      <td>113.678572,23.624653;113.678559,23.62451;113.6...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>向东南步行406米向右前方行走</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>406</td>\n",
       "      <td>325</td>\n",
       "      <td>113.675299,23.620048;113.675642,23.619991;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>沿乌土街向南步行1380米右转</td>\n",
       "      <td>南</td>\n",
       "      <td>乌土街</td>\n",
       "      <td>1380</td>\n",
       "      <td>1104</td>\n",
       "      <td>113.678181,23.617652;113.678095,23.617205;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>沿乌土街向西南步行165米直行</td>\n",
       "      <td>西南</td>\n",
       "      <td>乌土街</td>\n",
       "      <td>165</td>\n",
       "      <td>132</td>\n",
       "      <td>113.677535,23.605668;113.676988,23.605373;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>沿934县道向西步行118米直行</td>\n",
       "      <td>西</td>\n",
       "      <td>934县道</td>\n",
       "      <td>118</td>\n",
       "      <td>94</td>\n",
       "      <td>113.676159,23.604883;113.675929,23.604831;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>沿桃园东路向西南步行673米向右前方行走</td>\n",
       "      <td>西南</td>\n",
       "      <td>桃园东路</td>\n",
       "      <td>673</td>\n",
       "      <td>538</td>\n",
       "      <td>113.675009,23.604735;113.674236,23.604683;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>沿桃园东路向西南步行247米直行</td>\n",
       "      <td>西南</td>\n",
       "      <td>桃园东路</td>\n",
       "      <td>247</td>\n",
       "      <td>198</td>\n",
       "      <td>113.669714,23.601897;113.66964,23.601771;113.6...</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>沿桃园西路向西南步行2777米向右前方行走</td>\n",
       "      <td>西南</td>\n",
       "      <td>桃园西路</td>\n",
       "      <td>2777</td>\n",
       "      <td>2222</td>\n",
       "      <td>113.667943,23.600412;113.667331,23.600139;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>沿石海工业大道向西南步行1839米直行</td>\n",
       "      <td>西南</td>\n",
       "      <td>石海工业大道</td>\n",
       "      <td>1839</td>\n",
       "      <td>1471</td>\n",
       "      <td>113.656406,23.579358;113.656055,23.57931;113.6...</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>沿政通路向西南步行2160米直行</td>\n",
       "      <td>西南</td>\n",
       "      <td>政通路</td>\n",
       "      <td>2160</td>\n",
       "      <td>1728</td>\n",
       "      <td>113.641432,23.570816;113.641168,23.570525;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>沿灌村路向西步行781米左转</td>\n",
       "      <td>西</td>\n",
       "      <td>灌村路</td>\n",
       "      <td>781</td>\n",
       "      <td>625</td>\n",
       "      <td>113.624983,23.562361;113.624431,23.562183;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>沿环市东路向西南步行1582米向右前方行走</td>\n",
       "      <td>西南</td>\n",
       "      <td>环市东路</td>\n",
       "      <td>1582</td>\n",
       "      <td>1266</td>\n",
       "      <td>113.618247,23.559887;113.617626,23.559271;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>沿河东北路向西步行940米左转</td>\n",
       "      <td>西</td>\n",
       "      <td>河东北路</td>\n",
       "      <td>940</td>\n",
       "      <td>752</td>\n",
       "      <td>113.608967,23.548637;113.608767,23.548576;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>沿龙井路向西南步行632米左转</td>\n",
       "      <td>西南</td>\n",
       "      <td>龙井路</td>\n",
       "      <td>632</td>\n",
       "      <td>506</td>\n",
       "      <td>113.600299,23.546285;113.600282,23.545499;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>沿河东南路向南步行935米右转</td>\n",
       "      <td>南</td>\n",
       "      <td>河东南路</td>\n",
       "      <td>935</td>\n",
       "      <td>748</td>\n",
       "      <td>113.596241,23.54349;113.596289,23.543385;113.5...</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>沿从化大道南向西南步行348米向右前方行走</td>\n",
       "      <td>西南</td>\n",
       "      <td>从化大道南</td>\n",
       "      <td>348</td>\n",
       "      <td>278</td>\n",
       "      <td>113.598021,23.535217;113.597964,23.535178;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>沿从化大道南向西南步行322米左转</td>\n",
       "      <td>西南</td>\n",
       "      <td>从化大道南</td>\n",
       "      <td>322</td>\n",
       "      <td>258</td>\n",
       "      <td>113.595707,23.532895;113.59549,23.532826;113.5...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>沿从城大道向东南步行31米到达目的地</td>\n",
       "      <td>东南</td>\n",
       "      <td>从城大道</td>\n",
       "      <td>31</td>\n",
       "      <td>25</td>\n",
       "      <td>113.59329,23.531076;113.593542,23.530911</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "              instruction orientation    road distance duration  \\\n",
       "0              向南步行161米右转           南      []      161      129   \n",
       "1               向西步行99米左转           西      []       99       79   \n",
       "2              向南步行237米左转           南      []      237      190   \n",
       "3          向南步行498米向右前方行走           南      []      498      398   \n",
       "4             向西南步行715米左转          西南      []      715      572   \n",
       "5         向东南步行406米向右前方行走          东南      []      406      325   \n",
       "6         沿乌土街向南步行1380米右转           南     乌土街     1380     1104   \n",
       "7         沿乌土街向西南步行165米直行          西南     乌土街      165      132   \n",
       "8        沿934县道向西步行118米直行           西   934县道      118       94   \n",
       "9    沿桃园东路向西南步行673米向右前方行走          西南    桃园东路      673      538   \n",
       "10       沿桃园东路向西南步行247米直行          西南    桃园东路      247      198   \n",
       "11  沿桃园西路向西南步行2777米向右前方行走          西南    桃园西路     2777     2222   \n",
       "12    沿石海工业大道向西南步行1839米直行          西南  石海工业大道     1839     1471   \n",
       "13       沿政通路向西南步行2160米直行          西南     政通路     2160     1728   \n",
       "14         沿灌村路向西步行781米左转           西     灌村路      781      625   \n",
       "15  沿环市东路向西南步行1582米向右前方行走          西南    环市东路     1582     1266   \n",
       "16        沿河东北路向西步行940米左转           西    河东北路      940      752   \n",
       "17        沿龙井路向西南步行632米左转          西南     龙井路      632      506   \n",
       "18        沿河东南路向南步行935米右转           南    河东南路      935      748   \n",
       "19  沿从化大道南向西南步行348米向右前方行走          西南   从化大道南      348      278   \n",
       "20      沿从化大道南向西南步行322米左转          西南   从化大道南      322      258   \n",
       "21     沿从城大道向东南步行31米到达目的地          东南    从城大道       31       25   \n",
       "\n",
       "                                             polyline  action  \\\n",
       "0   113.679592,23.632088;113.679609,23.631003;113....      右转   \n",
       "1   113.67964,23.630634;113.679362,23.630521;113.6...      左转   \n",
       "2   113.678711,23.63036;113.678711,23.62934;113.67...      左转   \n",
       "3   113.678273,23.628368;113.678572,23.628338;113....  向右前方行走   \n",
       "4   113.678572,23.624653;113.678559,23.62451;113.6...      左转   \n",
       "5   113.675299,23.620048;113.675642,23.619991;113....  向右前方行走   \n",
       "6   113.678181,23.617652;113.678095,23.617205;113....      右转   \n",
       "7   113.677535,23.605668;113.676988,23.605373;113....      直行   \n",
       "8   113.676159,23.604883;113.675929,23.604831;113....      直行   \n",
       "9   113.675009,23.604735;113.674236,23.604683;113....  向右前方行走   \n",
       "10  113.669714,23.601897;113.66964,23.601771;113.6...      直行   \n",
       "11  113.667943,23.600412;113.667331,23.600139;113....  向右前方行走   \n",
       "12  113.656406,23.579358;113.656055,23.57931;113.6...      直行   \n",
       "13  113.641432,23.570816;113.641168,23.570525;113....      直行   \n",
       "14  113.624983,23.562361;113.624431,23.562183;113....      左转   \n",
       "15  113.618247,23.559887;113.617626,23.559271;113....  向右前方行走   \n",
       "16  113.608967,23.548637;113.608767,23.548576;113....      左转   \n",
       "17  113.600299,23.546285;113.600282,23.545499;113....      左转   \n",
       "18  113.596241,23.54349;113.596289,23.543385;113.5...      右转   \n",
       "19  113.598021,23.535217;113.597964,23.535178;113....  向右前方行走   \n",
       "20  113.595707,23.532895;113.59549,23.532826;113.5...      左转   \n",
       "21           113.59329,23.531076;113.593542,23.530911      []   \n",
       "\n",
       "   assistant_action walk_type  \n",
       "0                []         0  \n",
       "1                []         0  \n",
       "2                []         0  \n",
       "3                []         0  \n",
       "4                []         0  \n",
       "5                []         0  \n",
       "6                []         0  \n",
       "7                []         0  \n",
       "8                []         0  \n",
       "9                []         0  \n",
       "10               []         0  \n",
       "11               []         0  \n",
       "12               []         0  \n",
       "13               []         0  \n",
       "14               []         0  \n",
       "15               []         0  \n",
       "16               []         0  \n",
       "17               []         0  \n",
       "18               []         0  \n",
       "19               []         0  \n",
       "20               []         0  \n",
       "21            到达目的地         0  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "0                向南步行161米右转\n",
       "1                 向西步行99米左转\n",
       "2                向南步行237米左转\n",
       "3            向南步行498米向右前方行走\n",
       "4               向西南步行715米左转\n",
       "5           向东南步行406米向右前方行走\n",
       "6           沿乌土街向南步行1380米右转\n",
       "7           沿乌土街向西南步行165米直行\n",
       "8          沿934县道向西步行118米直行\n",
       "9      沿桃园东路向西南步行673米向右前方行走\n",
       "10         沿桃园东路向西南步行247米直行\n",
       "11    沿桃园西路向西南步行2777米向右前方行走\n",
       "12      沿石海工业大道向西南步行1839米直行\n",
       "13         沿政通路向西南步行2160米直行\n",
       "14           沿灌村路向西步行781米左转\n",
       "15    沿环市东路向西南步行1582米向右前方行走\n",
       "16          沿河东北路向西步行940米左转\n",
       "17          沿龙井路向西南步行632米左转\n",
       "18          沿河东南路向南步行935米右转\n",
       "19    沿从化大道南向西南步行348米向右前方行走\n",
       "20        沿从化大道南向西南步行322米左转\n",
       "21       沿从城大道向东南步行31米到达目的地\n",
       "Name: instruction, dtype: object"
      ]
     },
     "execution_count": 80,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# B-3 路径规划\n",
    "中大南方_街口地铁站 = walking(中大南方_location,街口地铁站_location)\n",
    "df_步行路径规划 = pd.json_normalize(中大南方_街口地铁站[\"route\"][\"paths\"][0]['steps'])\n",
    "display(df_步行路径规划)\n",
    "df_步行路径规划[\"instruction\"]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "公交路线规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 81,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)中山大学_location: 113.290219,23.128596 (终点)越秀公园_location: 113.265605,23.140140\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>count</th>\n",
       "      <th>route.origin</th>\n",
       "      <th>route.destination</th>\n",
       "      <th>route.distance</th>\n",
       "      <th>route.taxi_cost</th>\n",
       "      <th>route.transits</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>5</td>\n",
       "      <td>113.290219,23.128596</td>\n",
       "      <td>113.265605,23.140140</td>\n",
       "      <td>3465</td>\n",
       "      <td>12.509</td>\n",
       "      <td>[{'cost': '2.0', 'duration': '1753', 'nightfla...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode count          route.origin     route.destination  \\\n",
       "0      1   OK    10000     5  113.290219,23.128596  113.265605,23.140140   \n",
       "\n",
       "  route.distance route.taxi_cost  \\\n",
       "0           3465          12.509   \n",
       "\n",
       "                                      route.transits  \n",
       "0  [{'cost': '2.0', 'duration': '1753', 'nightfla...  "
      ]
     },
     "execution_count": 81,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# C-1\n",
    "def integrated(origin,destination,city,cityd=None,extensions='base',strategy=None,nightflag=0,date=None,time=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/transit/integrated?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'city':city,\n",
    "        'cityd':cityd,\n",
    "        'extensions':extensions,\n",
    "        'strategy':strategy,\n",
    "        'nightflag':nightflag,\n",
    "        'date':date,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "# C-2 准备walking 参数\n",
    "中山大学 = geocode('广东省广州市中山大学南校区')\n",
    "中山大学_location = 中山大学['geocodes'][0]['location']\n",
    "越秀公园 = geocode('广东省广州市越秀公园')\n",
    "越秀公园_location = 越秀公园['geocodes'][0]['location']\n",
    "print(\"(起点)中山大学_location:\",中山大学_location,\"(终点)越秀公园_location:\",越秀公园_location)\n",
    "\n",
    "# C-3 公交路径规划\n",
    "中大_越秀公园 = integrated(中山大学_location,越秀公园_location,city='广州',extensions='all')\n",
    "df_bus = pd.json_normalize(中大_越秀公园)\n",
    "df_bus"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 82,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>cost</th>\n",
       "      <th>duration</th>\n",
       "      <th>nightflag</th>\n",
       "      <th>walking_distance</th>\n",
       "      <th>distance</th>\n",
       "      <th>missed</th>\n",
       "      <th>segments</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2.0</td>\n",
       "      <td>1753</td>\n",
       "      <td>0</td>\n",
       "      <td>1521</td>\n",
       "      <td>5142</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.29036...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2.0</td>\n",
       "      <td>2429</td>\n",
       "      <td>0</td>\n",
       "      <td>1231</td>\n",
       "      <td>5382</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.29036...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>[]</td>\n",
       "      <td>2873</td>\n",
       "      <td>0</td>\n",
       "      <td>1473</td>\n",
       "      <td>5714</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.29036...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2.0</td>\n",
       "      <td>2488</td>\n",
       "      <td>0</td>\n",
       "      <td>1714</td>\n",
       "      <td>4445</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.29036...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4.0</td>\n",
       "      <td>2485</td>\n",
       "      <td>0</td>\n",
       "      <td>1564</td>\n",
       "      <td>4765</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.29036...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  cost duration nightflag walking_distance distance missed  \\\n",
       "0  2.0     1753         0             1521     5142      0   \n",
       "1  2.0     2429         0             1231     5382      0   \n",
       "2   []     2873         0             1473     5714      0   \n",
       "3  2.0     2488         0             1714     4445      0   \n",
       "4  4.0     2485         0             1564     4765      0   \n",
       "\n",
       "                                            segments  \n",
       "0  [{'taxi': [], 'walking': {'origin': '113.29036...  \n",
       "1  [{'taxi': [], 'walking': {'origin': '113.29036...  \n",
       "2  [{'taxi': [], 'walking': {'origin': '113.29036...  \n",
       "3  [{'taxi': [], 'walking': {'origin': '113.29036...  \n",
       "4  [{'taxi': [], 'walking': {'origin': '113.29036...  "
      ]
     },
     "execution_count": 82,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(中大_越秀公园[\"route\"]['transits'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 83,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>taxi</th>\n",
       "      <th>exit</th>\n",
       "      <th>walking.origin</th>\n",
       "      <th>walking.destination</th>\n",
       "      <th>walking.distance</th>\n",
       "      <th>walking.duration</th>\n",
       "      <th>walking.steps</th>\n",
       "      <th>bus.buslines</th>\n",
       "      <th>entrance.name</th>\n",
       "      <th>entrance.location</th>\n",
       "      <th>railway.via_stops</th>\n",
       "      <th>railway.alters</th>\n",
       "      <th>railway.spaces</th>\n",
       "      <th>walking</th>\n",
       "      <th>entrance</th>\n",
       "      <th>exit.name</th>\n",
       "      <th>exit.location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.290367,23.128555</td>\n",
       "      <td>113.285667,23.126701</td>\n",
       "      <td>820</td>\n",
       "      <td>702</td>\n",
       "      <td>[{'instruction': '沿岭南路步行152米左转', 'road': '岭南路'...</td>\n",
       "      <td>[{'departure_stop': {'name': '烈士陵园', 'id': '44...</td>\n",
       "      <td>C口</td>\n",
       "      <td>113.286560,23.126730</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>[]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>[{'departure_stop': {'name': '公园前', 'id': '440...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>A口</td>\n",
       "      <td>113.262108,23.138678</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.261368,23.140043</td>\n",
       "      <td>113.265648,23.140213</td>\n",
       "      <td>700</td>\n",
       "      <td>600</td>\n",
       "      <td>[{'instruction': '步行191米右转', 'road': [], 'dist...</td>\n",
       "      <td>[]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>[]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  taxi exit        walking.origin   walking.destination walking.distance  \\\n",
       "0   []   []  113.290367,23.128555  113.285667,23.126701              820   \n",
       "1   []  NaN                   NaN                   NaN              NaN   \n",
       "2   []   []  113.261368,23.140043  113.265648,23.140213              700   \n",
       "\n",
       "  walking.duration                                      walking.steps  \\\n",
       "0              702  [{'instruction': '沿岭南路步行152米左转', 'road': '岭南路'...   \n",
       "1              NaN                                                NaN   \n",
       "2              600  [{'instruction': '步行191米右转', 'road': [], 'dist...   \n",
       "\n",
       "                                        bus.buslines entrance.name  \\\n",
       "0  [{'departure_stop': {'name': '烈士陵园', 'id': '44...            C口   \n",
       "1  [{'departure_stop': {'name': '公园前', 'id': '440...           NaN   \n",
       "2                                                 []           NaN   \n",
       "\n",
       "      entrance.location railway.via_stops railway.alters railway.spaces  \\\n",
       "0  113.286560,23.126730                []             []             []   \n",
       "1                   NaN                []             []             []   \n",
       "2                   NaN                []             []             []   \n",
       "\n",
       "  walking entrance exit.name         exit.location  \n",
       "0     NaN      NaN       NaN                   NaN  \n",
       "1      []       []        A口  113.262108,23.138678  \n",
       "2     NaN       []       NaN                   NaN  "
      ]
     },
     "execution_count": 83,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(中大_越秀公园[\"route\"]['transits'][0]['segments'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 84,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>name</th>\n",
       "      <th>id</th>\n",
       "      <th>type</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>bustimetag</th>\n",
       "      <th>start_time</th>\n",
       "      <th>end_time</th>\n",
       "      <th>via_num</th>\n",
       "      <th>via_stops</th>\n",
       "      <th>departure_stop.name</th>\n",
       "      <th>departure_stop.id</th>\n",
       "      <th>departure_stop.location</th>\n",
       "      <th>arrival_stop.name</th>\n",
       "      <th>arrival_stop.id</th>\n",
       "      <th>arrival_stop.location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>地铁1号线(广州东站--西塱)</td>\n",
       "      <td>440100023049</td>\n",
       "      <td>地铁线路</td>\n",
       "      <td>2086</td>\n",
       "      <td>242</td>\n",
       "      <td>113.285663,23.126704;113.284645,23.126974;113....</td>\n",
       "      <td>0</td>\n",
       "      <td>0610</td>\n",
       "      <td>2330</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'name': '农讲所', 'id': '440100023049008', 'loc...</td>\n",
       "      <td>烈士陵园</td>\n",
       "      <td>440100023049007</td>\n",
       "      <td>113.285663,23.126704</td>\n",
       "      <td>公园前</td>\n",
       "      <td>440100023049009</td>\n",
       "      <td>113.264315,23.125446</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "              name            id  type distance duration  \\\n",
       "0  地铁1号线(广州东站--西塱)  440100023049  地铁线路     2086      242   \n",
       "\n",
       "                                            polyline bustimetag start_time  \\\n",
       "0  113.285663,23.126704;113.284645,23.126974;113....          0       0610   \n",
       "\n",
       "  end_time via_num                                          via_stops  \\\n",
       "0     2330       1  [{'name': '农讲所', 'id': '440100023049008', 'loc...   \n",
       "\n",
       "  departure_stop.name departure_stop.id departure_stop.location  \\\n",
       "0                烈士陵园   440100023049007    113.285663,23.126704   \n",
       "\n",
       "  arrival_stop.name  arrival_stop.id arrival_stop.location  \n",
       "0               公园前  440100023049009  113.264315,23.125446  "
      ]
     },
     "execution_count": 84,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_bus_基本信息 = pd.json_normalize(中大_越秀公园[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"])\n",
    "df_bus_基本信息"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 89,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>_23路公交车</th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>农讲所</td>\n",
       "      <td>440100023049008</td>\n",
       "      <td>113.275602,23.126623</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  _23路公交车               id              location\n",
       "0     农讲所  440100023049008  113.275602,23.126623"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# C-4 公交车信息处理结果\n",
    "_23路公交车 = pd.json_normalize(中大_越秀公园[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"][0][\"via_stops\"]).rename(columns={\"name\":\"_23路公交车\"})\n",
    "display(_23路公交车,)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "行政区域查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 95,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0755</td>\n",
       "      <td>440306</td>\n",
       "      <td>宝安区</td>\n",
       "      <td>113.828671,22.754741</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440306', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0755</td>\n",
       "      <td>440305</td>\n",
       "      <td>南山区</td>\n",
       "      <td>113.92943,22.531221</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440305', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0755</td>\n",
       "      <td>440304</td>\n",
       "      <td>福田区</td>\n",
       "      <td>114.05096,22.541009</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440304', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0755</td>\n",
       "      <td>440308</td>\n",
       "      <td>盐田区</td>\n",
       "      <td>114.235366,22.555069</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440308', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0755</td>\n",
       "      <td>440303</td>\n",
       "      <td>罗湖区</td>\n",
       "      <td>114.123885,22.555341</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440303', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0755</td>\n",
       "      <td>440307</td>\n",
       "      <td>龙岗区</td>\n",
       "      <td>114.251372,22.721511</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440307', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0755</td>\n",
       "      <td>440309</td>\n",
       "      <td>龙华区</td>\n",
       "      <td>114.044346,22.691963</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440309', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0755</td>\n",
       "      <td>440310</td>\n",
       "      <td>坪山区</td>\n",
       "      <td>114.338441,22.69423</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440310', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0755</td>\n",
       "      <td>440311</td>\n",
       "      <td>光明区</td>\n",
       "      <td>113.935895,22.748816</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440311', 'nam...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  citycode  adcode name                center     level  \\\n",
       "0     0755  440306  宝安区  113.828671,22.754741  district   \n",
       "1     0755  440305  南山区   113.92943,22.531221  district   \n",
       "2     0755  440304  福田区   114.05096,22.541009  district   \n",
       "3     0755  440308  盐田区  114.235366,22.555069  district   \n",
       "4     0755  440303  罗湖区  114.123885,22.555341  district   \n",
       "5     0755  440307  龙岗区  114.251372,22.721511  district   \n",
       "6     0755  440309  龙华区  114.044346,22.691963  district   \n",
       "7     0755  440310  坪山区   114.338441,22.69423  district   \n",
       "8     0755  440311  光明区  113.935895,22.748816  district   \n",
       "\n",
       "                                           districts  \n",
       "0  [{'citycode': '0755', 'adcode': '440306', 'nam...  \n",
       "1  [{'citycode': '0755', 'adcode': '440305', 'nam...  \n",
       "2  [{'citycode': '0755', 'adcode': '440304', 'nam...  \n",
       "3  [{'citycode': '0755', 'adcode': '440308', 'nam...  \n",
       "4  [{'citycode': '0755', 'adcode': '440303', 'nam...  \n",
       "5  [{'citycode': '0755', 'adcode': '440307', 'nam...  \n",
       "6  [{'citycode': '0755', 'adcode': '440309', 'nam...  \n",
       "7  [{'citycode': '0755', 'adcode': '440310', 'nam...  \n",
       "8  [{'citycode': '0755', 'adcode': '440311', 'nam...  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0755</td>\n",
       "      <td>440308</td>\n",
       "      <td>海山街道</td>\n",
       "      <td>114.25,22.5611</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0755</td>\n",
       "      <td>440308</td>\n",
       "      <td>市保税区</td>\n",
       "      <td>114.242,22.5594</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0755</td>\n",
       "      <td>440308</td>\n",
       "      <td>梅沙街道</td>\n",
       "      <td>114.281,22.6424</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0755</td>\n",
       "      <td>440308</td>\n",
       "      <td>盐田街道</td>\n",
       "      <td>114.252,22.5626</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0755</td>\n",
       "      <td>440308</td>\n",
       "      <td>沙头角街道</td>\n",
       "      <td>114.205,22.5706</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  citycode  adcode   name           center   level districts\n",
       "0     0755  440308   海山街道   114.25,22.5611  street        []\n",
       "1     0755  440308   市保税区  114.242,22.5594  street        []\n",
       "2     0755  440308   梅沙街道  114.281,22.6424  street        []\n",
       "3     0755  440308   盐田街道  114.252,22.5626  street        []\n",
       "4     0755  440308  沙头角街道  114.205,22.5706  street        []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# D-1 请注意行政区域级别划分参数\n",
    "def district(keywords,subdistrict=None,page=None,offset=None,extensions='base',filter=None,)->dict:\n",
    "    '''输入想要找出的行政地区的名称，即可反馈该地区的坐标等信息'''\n",
    "    url = 'https://restapi.amap.com/v3/config/district?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'keywords':keywords,\n",
    "        'subdistrict':subdistrict,\n",
    "        'page':page,\n",
    "        'offset':offset,\n",
    "        'extensions':extensions,\n",
    "        'filter':filter,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "行政区域 = district(keywords='深圳',extensions='all',subdistrict=2)\n",
    "#行政区域\n",
    "df_行政区域_1级 = pd.json_normalize(行政区域[\"districts\"][0]['districts'])\n",
    "\n",
    "df_行政区域_2级_深圳市 = pd.json_normalize(行政区域[\"districts\"][0]['districts'][3]['districts'])\n",
    "display(df_行政区域_1级,df_行政区域_2级_深圳市)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "关键字搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 97,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '898',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B00140NSIT',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '越秀区第三人民医院华乐分院',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;综合医院',\n",
       "   'typecode': '090100',\n",
       "   'biz_type': [],\n",
       "   'address': '淘金路淘金街34号',\n",
       "   'location': '113.287934,23.140398',\n",
       "   'tel': '020-83575326;020-83586065',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440104',\n",
       "   'adname': '越秀区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413526320',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_589958',\n",
       "   'entr_location': '113.288070,23.140430',\n",
       "   'business_area': '华乐',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-08 19:30:14',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f0238902a670d3d5008047fff6c94eff'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0496f40bbce1831b44975c7e5bac3db4'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b750d028b21c8a37398961a764516dd1'}]},\n",
       "  {'id': 'B00141U2JB',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '南沙区第二人民医院',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;综合医院',\n",
       "   'typecode': '090100',\n",
       "   'biz_type': [],\n",
       "   'address': '黄阁镇麒龙东路131号',\n",
       "   'location': '113.509681,22.825916',\n",
       "   'tel': '020-39910913;020-84971761',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440115',\n",
       "   'adname': '南沙区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413149002',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F015045_4021',\n",
       "   'entr_location': '113.509516,22.825574',\n",
       "   'business_area': '黄阁',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:06:57',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFGLWMUT ',\n",
       "     'name': ' 南沙区第二人民医院(西南门) ',\n",
       "     'sname': ' 西南门 ',\n",
       "     'location': '113.509638,22.825648',\n",
       "     'address': ' 黄阁镇麒龙东路131号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991000 '},\n",
       "    {'id': ' B0FFHSYCNP ',\n",
       "     'name': ' 南沙区第二人民医院(南门) ',\n",
       "     'sname': ' 南门 ',\n",
       "     'location': '113.509396,22.825719',\n",
       "     'address': '  ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991401 '},\n",
       "    {'id': ' B0FFGLWMT8 ',\n",
       "     'name': ' 广州市南沙区第二人民医院停车场 ',\n",
       "     'sname': ' 广州市南沙区第二人民医院停车场 ',\n",
       "     'location': '113.509705,22.826002',\n",
       "     'address': ' 麒龙东路与黄梅路交叉口东南150米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/445aae6e316f2c2b6a784e6dad66e16b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9766b72bb7920ea01d4d8d5fd23ae045'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/37d2c84c802c9738e0708a3f0330ec60'}]},\n",
       "  {'id': 'B0FFF2L2NX',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '慈济医院(府前路)',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;综合医院',\n",
       "   'typecode': '090100',\n",
       "   'biz_type': [],\n",
       "   'address': '鳌头镇旗杆府前路5号',\n",
       "   'location': '113.508097,23.57873',\n",
       "   'tel': '020-87863120',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440117',\n",
       "   'adname': '从化区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3513249011',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F006045_149895',\n",
       "   'entr_location': '113.507248,23.578548',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:22:08',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/03ffcc227275b82bd57fe649123263ff'}]},\n",
       "  {'id': 'B00140UERJ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广东省人民医院',\n",
       "   'tag': '综合',\n",
       "   'type': '医疗保健服务;综合医院;三级甲等医院',\n",
       "   'typecode': '090101',\n",
       "   'biz_type': [],\n",
       "   'address': '中山二路106号',\n",
       "   'location': '113.287241,23.125123',\n",
       "   'tel': '020-83827812',\n",
       "   'postcode': [],\n",
       "   'website': 'www.e5413.com',\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440104',\n",
       "   'adname': '越秀区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413525202',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_58340',\n",
       "   'entr_location': '113.286769,23.125323',\n",
       "   'business_area': '东川',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:50:34',\n",
       "   'alias': '省人民医院|广东省心血管病医院|广东省高等医学院校教学医院|广东省医学科学院|华南理工大学第一临床学院',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '2.0', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFFHJ4G4 ',\n",
       "     'name': ' 广东省人民医院(东北2门) ',\n",
       "     'sname': ' 东北2门 ',\n",
       "     'location': '113.287744,23.125847',\n",
       "     'address': ' 中山二路106号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B00141PS5P ',\n",
       "     'name': ' 广东省人民医院(西北门) ',\n",
       "     'sname': ' 西北门 ',\n",
       "     'location': '113.286814,23.125308',\n",
       "     'address': ' 中山二路106号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991401 '},\n",
       "    {'id': ' B00140U48T ',\n",
       "     'name': ' 广东省人民医院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.287139,23.125510',\n",
       "     'address': ' 中山二路106号广东省人民医院内 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B0FFGFTXGP ',\n",
       "     'name': ' 广东省人民医院停车场(中山二路) ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.287665,23.125250',\n",
       "     'address': ' 中山二路106号广东省人民医院内 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B0FFG6ERPR ',\n",
       "     'name': ' 广东省人民医院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.287774,23.124846',\n",
       "     'address': ' 中山二路106号广东省人民医院内 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/eaffd5da11279176c4f4f642b02ceb0c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b519b414787314990fec512b4f3fdaca'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2f67ff578ed30a71934ccfb594b3c086'}]},\n",
       "  {'id': 'B0FFFP0KHM',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广州医科大学附属第二医院西院区',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;三级甲等医院',\n",
       "   'typecode': '090101',\n",
       "   'biz_type': [],\n",
       "   'address': '南石头广纸路21号',\n",
       "   'location': '113.270575,23.074429',\n",
       "   'tel': '020-84365427;020-84356012',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440105',\n",
       "   'adname': '海珠区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413428121',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F012043_2699',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-15 10:16:47',\n",
       "   'alias': '海珠区南石头街社区卫生服务中心|第二医院西院区',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '2.0', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFFZE6FN ',\n",
       "     'name': ' 广州医科大学附属第二医院西院区(西北门) ',\n",
       "     'sname': ' 西北门 ',\n",
       "     'location': '113.270389,23.074653',\n",
       "     'address': ' 广纸路21号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/eb49e0372dd48e0d6a6e642b8ab5237a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f92ada4806592db16f7cec9fe61e16cc'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9804a8ffdbd69b7e60fc7b8133e3a757'}]},\n",
       "  {'id': 'B00141IE64',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广州市番禺中心医院',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;三级甲等医院',\n",
       "   'typecode': '090101',\n",
       "   'biz_type': [],\n",
       "   'address': '福愉东路8号',\n",
       "   'location': '113.375933,22.910463',\n",
       "   'tel': '020-34859600;020-34858888',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440113',\n",
       "   'adname': '番禺区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413239010',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F014043_58508',\n",
       "   'entr_location': '113.375627,22.912496',\n",
       "   'business_area': '沙湾',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:59:42',\n",
       "   'alias': '番禺中心医院',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.5', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B00141JSK2 ',\n",
       "     'name': ' 广州市番禺中心医院(1号门) ',\n",
       "     'sname': ' 1号门 ',\n",
       "     'location': '113.374162,22.911007',\n",
       "     'address': ' 德愉东路与德信路交叉口以南 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B00141JTIR ',\n",
       "     'name': ' 番禺中心医院(3号门) ',\n",
       "     'sname': ' 3号门 ',\n",
       "     'location': '113.377594,22.912380',\n",
       "     'address': ' 福愉东路 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B00141JVJ0 ',\n",
       "     'name': ' 番禺中心医院(2号门) ',\n",
       "     'sname': ' 2号门 ',\n",
       "     'location': '113.375628,22.912454',\n",
       "     'address': ' 福愉东路8号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991401 '},\n",
       "    {'id': ' B0FFK8WLJM ',\n",
       "     'name': ' 广州市番禺中心医院(东南门) ',\n",
       "     'sname': ' 东南门 ',\n",
       "     'location': '113.378428,22.910265',\n",
       "     'address': ' 德艺路 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B0FFGKW851 ',\n",
       "     'name': ' 番禺中心医院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.377562,22.910973',\n",
       "     'address': ' 福愉东路附近 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B0FFGKV0OB ',\n",
       "     'name': ' 番禺中心医院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.374446,22.909230',\n",
       "     'address': ' 德信路东50米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150905 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ae5a1b4119609117e4da4404201eb91e'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7ac611aed65ab92dec1c439c3e0027b7'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5d189940cdac3cf72eeeb45a6058c79c'}]},\n",
       "  {'id': 'B0FFGXYRYJ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '赤坭镇医院',\n",
       "   'tag': '妇产科,内科',\n",
       "   'type': '医疗保健服务;综合医院;综合医院',\n",
       "   'typecode': '090100',\n",
       "   'biz_type': [],\n",
       "   'address': '赤坭镇沿江路2号',\n",
       "   'location': '113.075009,23.38882',\n",
       "   'tel': '020-86841326',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440114',\n",
       "   'adname': '花都区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3513006610',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '113.075065,23.388906',\n",
       "   'business_area': '赤坭村',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-11 16:04:36',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B00140HTTS',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '南源街社区卫生服务中心',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;卫生院',\n",
       "   'typecode': '090102',\n",
       "   'biz_type': [],\n",
       "   'address': '南岸路荔港南湾荟文一街23号2楼',\n",
       "   'location': '113.228907,23.134390',\n",
       "   'tel': '020-81959299',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440103',\n",
       "   'adname': '荔湾区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413516800',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011042_219674',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:16:03',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.5', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9db75015be5db0c47928e43f24d1415c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/79f35eb092170f03709a8d23b8de4bac'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/18fdce27531e4ada3727daefd5073349'}]},\n",
       "  {'id': 'B001423SIX',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广东民安医院',\n",
       "   'tag': '皮肤性病,神经内科',\n",
       "   'type': '医疗保健服务;综合医院;综合医院',\n",
       "   'typecode': '090100',\n",
       "   'biz_type': [],\n",
       "   'address': '犀牛路7号',\n",
       "   'location': '113.296929,23.13292',\n",
       "   'tel': '020-62823999;020-87673985',\n",
       "   'postcode': [],\n",
       "   'website': 'www.minan120.com',\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440104',\n",
       "   'adname': '越秀区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413525322',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_68183',\n",
       "   'entr_location': '113.297107,23.133012',\n",
       "   'business_area': '建设',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:46:46',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.0', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/be38c8272542373e154df229a4980141'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/954fbf4bd138071230ecf90987f1ac98'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/cf317bcd16f5b5126080308339b1d16f'}]},\n",
       "  {'id': 'B00140ALIC',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '海珠区红十字会医院',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;综合医院',\n",
       "   'typecode': '090100',\n",
       "   'biz_type': [],\n",
       "   'address': '工业大道北77-3号',\n",
       "   'location': '113.257766,23.092887',\n",
       "   'tel': '020-34039371;020-34039173',\n",
       "   'postcode': [],\n",
       "   'website': 'www.hzqws.gov.cn',\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440105',\n",
       "   'adname': '海珠区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413521001',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_14540;811490',\n",
       "   'entr_location': '113.25762,23.092706',\n",
       "   'business_area': '龙凤',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:50:35',\n",
       "   'alias': '海珠区龙凤街社区卫生服务中心',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.0', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFK8G0D5 ',\n",
       "     'name': ' 海珠区红十字会医院(南门) ',\n",
       "     'sname': ' 南门 ',\n",
       "     'location': '113.257839,23.092675',\n",
       "     'address': ' 内环路入口与工业大道北交叉口东北50米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ae3f830fe4292f135a2e9bbbac599712'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bdc55a3feb621144884d8da9a892edc2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/697e6e3da60f4b9cf1585d2b43f6daa2'}]},\n",
       "  {'id': 'B00141JGX4',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '森语星园社区卫生服务站',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;卫生院',\n",
       "   'typecode': '090102',\n",
       "   'biz_type': [],\n",
       "   'address': '森语二街51-53',\n",
       "   'location': '113.314865,23.067898',\n",
       "   'tel': '020-34272337',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440105',\n",
       "   'adname': '海珠区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413428500',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F012043_132777',\n",
       "   'entr_location': [],\n",
       "   'business_area': '南洲',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-10 18:23:33',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/82253c7a68eff704770303a520af91d5'}]},\n",
       "  {'id': 'B00140H4DI',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广州开发区医院',\n",
       "   'tag': '内科,外科',\n",
       "   'type': '医疗保健服务;综合医院;综合医院',\n",
       "   'typecode': '090100',\n",
       "   'biz_type': [],\n",
       "   'address': '友谊路196号',\n",
       "   'location': '113.52936,23.057413',\n",
       "   'tel': '020-82087088;020-82215583',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440112',\n",
       "   'adname': '黄埔区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413446221',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F012045_41',\n",
       "   'entr_location': '113.529411,23.056094',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:30:55',\n",
       "   'alias': '开发区医院',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '2.0', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFK4GADK ',\n",
       "     'name': ' 广州开发区医院(南门) ',\n",
       "     'sname': ' 南门 ',\n",
       "     'location': '113.528934,23.056191',\n",
       "     'address': ' 创业路与春晖街交叉口东北50米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B0FFK98XPG ',\n",
       "     'name': ' 广州开发区医院(东1门) ',\n",
       "     'sname': ' 东1门 ',\n",
       "     'location': '113.530354,23.058035',\n",
       "     'address': ' 友谊路附近 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B0FFGLG5F1 ',\n",
       "     'name': ' 广州开发区医院(东门) ',\n",
       "     'sname': ' 东门 ',\n",
       "     'location': '113.530305,23.057503',\n",
       "     'address': ' 友谊路196号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B00140UO5C ',\n",
       "     'name': ' 广州开发区医院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.530057,23.057564',\n",
       "     'address': ' 经济技术开发区西区友谊路196号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B0FFH3LMVA ',\n",
       "     'name': ' 广州经济技术开发区医院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.529842,23.056288',\n",
       "     'address': ' 经济技术开发区西区友谊路196号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8e29cb7d61813c217154e5b163b1e862'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1c8ef369a4445b8ebe4ed5475357b7d6'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9334b957e8dd6667af6c24d409acf0c1'}]},\n",
       "  {'id': 'B00140HGM0',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广州市海珠区琶洲街黄埔社区卫生服务站',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;卫生院',\n",
       "   'typecode': '090102',\n",
       "   'biz_type': [],\n",
       "   'address': '琶洲街黄埔村口10号',\n",
       "   'location': '113.397110,23.092924',\n",
       "   'tel': '020-34090090',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440105',\n",
       "   'adname': '海珠区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413531102',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011044_264794',\n",
       "   'entr_location': '113.397233,23.093035',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:33:22',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.7', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c84f616e5c15e358b14d3755dd98a023'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a19a7a8ff598a816477e00a5fc1ecdd8'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f7e9184afc43be68049f197780a1d39b'}]},\n",
       "  {'id': 'B00140U136',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广东省中医院',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;三级甲等医院',\n",
       "   'typecode': '090101',\n",
       "   'biz_type': [],\n",
       "   'address': '大德路111号',\n",
       "   'location': '113.256554,23.118118',\n",
       "   'tel': '020-81887233',\n",
       "   'postcode': [],\n",
       "   'website': 'www.gdhtcm.com',\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440104',\n",
       "   'adname': '越秀区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413524001',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_590702',\n",
       "   'entr_location': '113.256518,23.117301',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:10:53',\n",
       "   'alias': '省中医院',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '5.0', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFG4DNKD ',\n",
       "     'name': ' 广东省中医院(东南门) ',\n",
       "     'sname': ' 东南门 ',\n",
       "     'location': '113.256847,23.117517',\n",
       "     'address': ' 大德路111号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991001 '},\n",
       "    {'id': ' B0FFFPKHR6 ',\n",
       "     'name': ' 广东省中医院(西北门) ',\n",
       "     'sname': ' 西北门 ',\n",
       "     'location': '113.256109,23.119113',\n",
       "     'address': ' 海珠中路与观绿路交叉口北50米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B0FFFPKHQ4 ',\n",
       "     'name': ' 广东省中医院(西门) ',\n",
       "     'sname': ' 西门 ',\n",
       "     'location': '113.255916,23.117892',\n",
       "     'address': ' 海珠中路38号附近 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B00140T48X ',\n",
       "     'name': ' 广东省中医院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.256041,23.117646',\n",
       "     'address': ' 大德路111号广东省中医院 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B0FFHGHO4R ',\n",
       "     'name': ' 广东省中医院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.256831,23.118924',\n",
       "     'address': ' 海珠中路与观绿路交叉口东北100米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/608321274936155810badab81536d197'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/55acb5c5a310a084c90eeeb2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/55acb5c5a310a084c90eeeb6'}]},\n",
       "  {'id': 'B00140ATOJ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广东省中医院二沙岛分院',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;三级甲等医院',\n",
       "   'typecode': '090101',\n",
       "   'biz_type': [],\n",
       "   'address': '大通路261',\n",
       "   'location': '113.303436,23.111513',\n",
       "   'tel': '020-87351238',\n",
       "   'postcode': [],\n",
       "   'website': 'www.gdhtcm.com',\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440104',\n",
       "   'adname': '越秀区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413523410',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_62684',\n",
       "   'entr_location': '113.303011,23.110961',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:51:50',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '5.0', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFFGTRBI ',\n",
       "     'name': ' 广东省中医院二沙岛分院(北门) ',\n",
       "     'sname': ' 北门 ',\n",
       "     'location': '113.303510,23.112140',\n",
       "     'address': ' 二沙岛大通路261号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B0FFKAUVZ8 ',\n",
       "     'name': ' 广东省中医院二沙岛分院(东南门) ',\n",
       "     'sname': ' 东南门 ',\n",
       "     'location': '113.304265,23.111956',\n",
       "     'address': ' 晴澜路与蒲涧街交叉口西南50米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B0FFKAUVZ6 ',\n",
       "     'name': ' 广东省中医院二沙岛分院(西北门) ',\n",
       "     'sname': ' 西北门 ',\n",
       "     'location': '113.302567,23.111830',\n",
       "     'address': ' 花园二街与菊湖街交叉口南50米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B0FFH4ZMEK ',\n",
       "     'name': ' 广东省中医院二沙岛分院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.302583,23.111260',\n",
       "     'address': ' 大通路261号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B0FFFGTPMQ ',\n",
       "     'name': ' 广东省中医院二沙岛分院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.303578,23.112086',\n",
       "     'address': ' 大通路261号广东中医院二沙岛分院 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b77e94d11d6cc708d8a38730f75ee130'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/626f1db2287eca2f057a01dee1268d16'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/51b7ffd44266a12292a4561db5d1f8d1'}]},\n",
       "  {'id': 'B00140U0UG',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '建设街社区卫生服务中心',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;卫生院',\n",
       "   'typecode': '090102',\n",
       "   'biz_type': [],\n",
       "   'address': '建设二马路14号(近建设新村市场)',\n",
       "   'location': '113.282345,23.136533',\n",
       "   'tel': '020-83874886;020-83830607',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440104',\n",
       "   'adname': '越秀区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413526211',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_67117;67115',\n",
       "   'entr_location': '113.282256,23.136527',\n",
       "   'business_area': '建设',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:29:14',\n",
       "   'alias': '市政医院(建设二马路)',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFH018J2 ',\n",
       "     'name': ' 市政医院(西门) ',\n",
       "     'sname': ' 西门 ',\n",
       "     'location': '113.282390,23.136407',\n",
       "     'address': ' 建设二马路14号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991000 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e8d4b6453c635c279f3b6218065a017a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a8873504ac45dc7736e1e5af01183f7b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e986311fc3934b8275e5a1973d32db56'}]},\n",
       "  {'id': 'B001406134',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '南沙区东涌医院',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;综合医院',\n",
       "   'typecode': '090100',\n",
       "   'biz_type': [],\n",
       "   'address': '培贤东路7号',\n",
       "   'location': '113.461857,22.883977',\n",
       "   'tel': '020-84905143;020-84905499',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440115',\n",
       "   'adname': '南沙区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413236602',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F014044_214',\n",
       "   'entr_location': '113.461517,22.884452',\n",
       "   'business_area': '东涌',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 11:13:35',\n",
       "   'alias': '东涌医院',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFK8OH3H ',\n",
       "     'name': ' 南沙区东涌医院(西北门) ',\n",
       "     'sname': ' 西北门 ',\n",
       "     'location': '113.461537,22.884431',\n",
       "     'address': ' 东兴一路与培贤东路一街交叉口南50米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B0FFLO2FU5 ',\n",
       "     'name': ' 南沙区东涌医院(东北门) ',\n",
       "     'sname': ' 东北门 ',\n",
       "     'location': '113.462371,22.884128',\n",
       "     'address': '  ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/078f7ae0588bb784e4a6f578087ee0c4'}]},\n",
       "  {'id': 'B0FFG5CSFG',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '湖北职业技术学院教学医院',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;综合医院',\n",
       "   'typecode': '090100',\n",
       "   'biz_type': [],\n",
       "   'address': '温泉东路117号附近',\n",
       "   'location': '113.653698,23.653225',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440117',\n",
       "   'adname': '从化区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3513358210',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': '温泉',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-07 19:29:11',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ef208fb7cb728ae3c4f3329bfda540a0'}]},\n",
       "  {'id': 'B0FFGYOD61',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '良口镇医院',\n",
       "   'tag': [],\n",
       "   'type': '医疗保健服务;综合医院;综合医院',\n",
       "   'typecode': '090100',\n",
       "   'biz_type': [],\n",
       "   'address': '良口镇新城路39号',\n",
       "   'location': '113.734137,23.71654',\n",
       "   'tel': '020-87852133',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440117',\n",
       "   'adname': '从化区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3513455822',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '113.7338,23.717049',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:34:34',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFLNEHPL ',\n",
       "     'name': ' 良口镇医院(西北门) ',\n",
       "     'sname': ' 西北门 ',\n",
       "     'location': '113.733690,23.717039',\n",
       "     'address': '  ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7076d44c2d3f18ce94e0c7f659642d10'}]},\n",
       "  {'id': 'B001402FC5',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '黄埔区中医医院',\n",
       "   'tag': '妇产科,内科',\n",
       "   'type': '医疗保健服务;综合医院;综合医院',\n",
       "   'typecode': '090100',\n",
       "   'biz_type': [],\n",
       "   'address': '蟹山路3号',\n",
       "   'location': '113.435902,23.097862',\n",
       "   'tel': '020-82276558;020-82288935',\n",
       "   'postcode': [],\n",
       "   'website': 'www.zyy.hp.gov.cn',\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440112',\n",
       "   'adname': '黄埔区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413531422',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011044_92320',\n",
       "   'entr_location': '113.435672,23.097384',\n",
       "   'business_area': '大沙',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 11:10:18',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.0', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFFADZ2D ',\n",
       "     'name': ' 黄埔区中医院停车场 ',\n",
       "     'sname': ' 黄埔区中医院停车场 ',\n",
       "     'location': '113.436102,23.097562',\n",
       "     'address': ' 蟹山西路与蟹山路交叉口东北100米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B0FFHTL4WZ ',\n",
       "     'name': ' 黄埔区中医院地面停车场 ',\n",
       "     'sname': ' 地面停车场 ',\n",
       "     'location': '113.435479,23.097589',\n",
       "     'address': ' 蟹山西路与蟹山路交叉口北50米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150906 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dc6eadb7ed5a4b5c7fd64c4d6cd39811'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/37d3e560eb65defbfc7d9658d487fb28'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a218c73bb1262b0d81ce5aeb5198470a'}]}]}"
      ]
     },
     "execution_count": 97,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# E-1\n",
    "def place_text(keywords,types,city=None,citylimit=None,children=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/text?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'keywords':keywords,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'citylimit':citylimit,\n",
    "        'children':children,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "广州_医院 = place_text('医院','医疗保健服务',city=\"广州市\",children=1,extensions='all')\n",
    "广州_医院\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 99,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>title</th>\n",
       "      <th>url</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>[]</td>\n",
       "      <td>http://store.is.autonavi.com/showpic/ae3f830fe...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>[]</td>\n",
       "      <td>http://store.is.autonavi.com/showpic/bdc55a3fe...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>[]</td>\n",
       "      <td>http://store.is.autonavi.com/showpic/697e6e3da...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  title                                                url\n",
       "0    []  http://store.is.autonavi.com/showpic/ae3f830fe...\n",
       "1    []  http://store.is.autonavi.com/showpic/bdc55a3fe...\n",
       "2    []  http://store.is.autonavi.com/showpic/697e6e3da..."
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>tag</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>...</th>\n",
       "      <th>discount_num</th>\n",
       "      <th>event</th>\n",
       "      <th>children</th>\n",
       "      <th>photos</th>\n",
       "      <th>indoor_data.cpid</th>\n",
       "      <th>indoor_data.floor</th>\n",
       "      <th>indoor_data.truefloor</th>\n",
       "      <th>indoor_data.cmsid</th>\n",
       "      <th>biz_ext.rating</th>\n",
       "      <th>biz_ext.cost</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B00140NSIT</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>越秀区第三人民医院华乐分院</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;综合医院</td>\n",
       "      <td>090100</td>\n",
       "      <td>[]</td>\n",
       "      <td>淘金路淘金街34号</td>\n",
       "      <td>113.287934,23.140398</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B00141U2JB</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>南沙区第二人民医院</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;综合医院</td>\n",
       "      <td>090100</td>\n",
       "      <td>[]</td>\n",
       "      <td>黄阁镇麒龙东路131号</td>\n",
       "      <td>113.509681,22.825916</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFGLWMUT ', 'name': ' 南沙区第二人民医院(西南...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFF2L2NX</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>慈济医院(府前路)</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;综合医院</td>\n",
       "      <td>090100</td>\n",
       "      <td>[]</td>\n",
       "      <td>鳌头镇旗杆府前路5号</td>\n",
       "      <td>113.508097,23.57873</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B00140UERJ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广东省人民医院</td>\n",
       "      <td>综合</td>\n",
       "      <td>医疗保健服务;综合医院;三级甲等医院</td>\n",
       "      <td>090101</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山二路106号</td>\n",
       "      <td>113.287241,23.125123</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFFHJ4G4 ', 'name': ' 广东省人民医院(东北2门...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>2.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B0FFFP0KHM</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州医科大学附属第二医院西院区</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;三级甲等医院</td>\n",
       "      <td>090101</td>\n",
       "      <td>[]</td>\n",
       "      <td>南石头广纸路21号</td>\n",
       "      <td>113.270575,23.074429</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFFZE6FN ', 'name': ' 广州医科大学附属第二医院...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>2.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B00141IE64</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州市番禺中心医院</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;三级甲等医院</td>\n",
       "      <td>090101</td>\n",
       "      <td>[]</td>\n",
       "      <td>福愉东路8号</td>\n",
       "      <td>113.375933,22.910463</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B00141JSK2 ', 'name': ' 广州市番禺中心医院(1号...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFGXYRYJ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>赤坭镇医院</td>\n",
       "      <td>妇产科,内科</td>\n",
       "      <td>医疗保健服务;综合医院;综合医院</td>\n",
       "      <td>090100</td>\n",
       "      <td>[]</td>\n",
       "      <td>赤坭镇沿江路2号</td>\n",
       "      <td>113.075009,23.38882</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B00140HTTS</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>南源街社区卫生服务中心</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;卫生院</td>\n",
       "      <td>090102</td>\n",
       "      <td>[]</td>\n",
       "      <td>南岸路荔港南湾荟文一街23号2楼</td>\n",
       "      <td>113.228907,23.134390</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B001423SIX</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广东民安医院</td>\n",
       "      <td>皮肤性病,神经内科</td>\n",
       "      <td>医疗保健服务;综合医院;综合医院</td>\n",
       "      <td>090100</td>\n",
       "      <td>[]</td>\n",
       "      <td>犀牛路7号</td>\n",
       "      <td>113.296929,23.13292</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B00140ALIC</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>海珠区红十字会医院</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;综合医院</td>\n",
       "      <td>090100</td>\n",
       "      <td>[]</td>\n",
       "      <td>工业大道北77-3号</td>\n",
       "      <td>113.257766,23.092887</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFK8G0D5 ', 'name': ' 海珠区红十字会医院(南门...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B00141JGX4</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>森语星园社区卫生服务站</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;卫生院</td>\n",
       "      <td>090102</td>\n",
       "      <td>[]</td>\n",
       "      <td>森语二街51-53</td>\n",
       "      <td>113.314865,23.067898</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B00140H4DI</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州开发区医院</td>\n",
       "      <td>内科,外科</td>\n",
       "      <td>医疗保健服务;综合医院;综合医院</td>\n",
       "      <td>090100</td>\n",
       "      <td>[]</td>\n",
       "      <td>友谊路196号</td>\n",
       "      <td>113.52936,23.057413</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFK4GADK ', 'name': ' 广州开发区医院(南门) ...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>2.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B00140HGM0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州市海珠区琶洲街黄埔社区卫生服务站</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;卫生院</td>\n",
       "      <td>090102</td>\n",
       "      <td>[]</td>\n",
       "      <td>琶洲街黄埔村口10号</td>\n",
       "      <td>113.397110,23.092924</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.7</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B00140U136</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广东省中医院</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;三级甲等医院</td>\n",
       "      <td>090101</td>\n",
       "      <td>[]</td>\n",
       "      <td>大德路111号</td>\n",
       "      <td>113.256554,23.118118</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFG4DNKD ', 'name': ' 广东省中医院(东南门) ...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>5.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B00140ATOJ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广东省中医院二沙岛分院</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;三级甲等医院</td>\n",
       "      <td>090101</td>\n",
       "      <td>[]</td>\n",
       "      <td>大通路261</td>\n",
       "      <td>113.303436,23.111513</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFFGTRBI ', 'name': ' 广东省中医院二沙岛分院(...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>5.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B00140U0UG</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>建设街社区卫生服务中心</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;卫生院</td>\n",
       "      <td>090102</td>\n",
       "      <td>[]</td>\n",
       "      <td>建设二马路14号(近建设新村市场)</td>\n",
       "      <td>113.282345,23.136533</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFH018J2 ', 'name': ' 市政医院(西门) ', ...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B001406134</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>南沙区东涌医院</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;综合医院</td>\n",
       "      <td>090100</td>\n",
       "      <td>[]</td>\n",
       "      <td>培贤东路7号</td>\n",
       "      <td>113.461857,22.883977</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFK8OH3H ', 'name': ' 南沙区东涌医院(西北门)...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFG5CSFG</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>湖北职业技术学院教学医院</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;综合医院</td>\n",
       "      <td>090100</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉东路117号附近</td>\n",
       "      <td>113.653698,23.653225</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFGYOD61</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>良口镇医院</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;综合医院;综合医院</td>\n",
       "      <td>090100</td>\n",
       "      <td>[]</td>\n",
       "      <td>良口镇新城路39号</td>\n",
       "      <td>113.734137,23.71654</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFLNEHPL ', 'name': ' 良口镇医院(西北门) '...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B001402FC5</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>黄埔区中医医院</td>\n",
       "      <td>妇产科,内科</td>\n",
       "      <td>医疗保健服务;综合医院;综合医院</td>\n",
       "      <td>090100</td>\n",
       "      <td>[]</td>\n",
       "      <td>蟹山路3号</td>\n",
       "      <td>113.435902,23.097862</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFFADZ2D ', 'name': ' 黄埔区中医院停车场 ',...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>20 rows × 46 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            id parent childtype                name        tag  \\\n",
       "0   B00140NSIT     []        []       越秀区第三人民医院华乐分院         []   \n",
       "1   B00141U2JB     []        []           南沙区第二人民医院         []   \n",
       "2   B0FFF2L2NX     []        []           慈济医院(府前路)         []   \n",
       "3   B00140UERJ     []        []             广东省人民医院         综合   \n",
       "4   B0FFFP0KHM     []        []     广州医科大学附属第二医院西院区         []   \n",
       "5   B00141IE64     []        []           广州市番禺中心医院         []   \n",
       "6   B0FFGXYRYJ     []        []               赤坭镇医院     妇产科,内科   \n",
       "7   B00140HTTS     []        []         南源街社区卫生服务中心         []   \n",
       "8   B001423SIX     []        []              广东民安医院  皮肤性病,神经内科   \n",
       "9   B00140ALIC     []        []           海珠区红十字会医院         []   \n",
       "10  B00141JGX4     []        []         森语星园社区卫生服务站         []   \n",
       "11  B00140H4DI     []        []             广州开发区医院      内科,外科   \n",
       "12  B00140HGM0     []        []  广州市海珠区琶洲街黄埔社区卫生服务站         []   \n",
       "13  B00140U136     []        []              广东省中医院         []   \n",
       "14  B00140ATOJ     []        []         广东省中医院二沙岛分院         []   \n",
       "15  B00140U0UG     []        []         建设街社区卫生服务中心         []   \n",
       "16  B001406134     []        []             南沙区东涌医院         []   \n",
       "17  B0FFG5CSFG     []        []        湖北职业技术学院教学医院         []   \n",
       "18  B0FFGYOD61     []        []               良口镇医院         []   \n",
       "19  B001402FC5     []        []             黄埔区中医医院     妇产科,内科   \n",
       "\n",
       "                  type typecode biz_type            address  \\\n",
       "0     医疗保健服务;综合医院;综合医院   090100       []          淘金路淘金街34号   \n",
       "1     医疗保健服务;综合医院;综合医院   090100       []        黄阁镇麒龙东路131号   \n",
       "2     医疗保健服务;综合医院;综合医院   090100       []         鳌头镇旗杆府前路5号   \n",
       "3   医疗保健服务;综合医院;三级甲等医院   090101       []           中山二路106号   \n",
       "4   医疗保健服务;综合医院;三级甲等医院   090101       []          南石头广纸路21号   \n",
       "5   医疗保健服务;综合医院;三级甲等医院   090101       []             福愉东路8号   \n",
       "6     医疗保健服务;综合医院;综合医院   090100       []           赤坭镇沿江路2号   \n",
       "7      医疗保健服务;综合医院;卫生院   090102       []   南岸路荔港南湾荟文一街23号2楼   \n",
       "8     医疗保健服务;综合医院;综合医院   090100       []              犀牛路7号   \n",
       "9     医疗保健服务;综合医院;综合医院   090100       []         工业大道北77-3号   \n",
       "10     医疗保健服务;综合医院;卫生院   090102       []          森语二街51-53   \n",
       "11    医疗保健服务;综合医院;综合医院   090100       []            友谊路196号   \n",
       "12     医疗保健服务;综合医院;卫生院   090102       []         琶洲街黄埔村口10号   \n",
       "13  医疗保健服务;综合医院;三级甲等医院   090101       []            大德路111号   \n",
       "14  医疗保健服务;综合医院;三级甲等医院   090101       []             大通路261   \n",
       "15     医疗保健服务;综合医院;卫生院   090102       []  建设二马路14号(近建设新村市场)   \n",
       "16    医疗保健服务;综合医院;综合医院   090100       []             培贤东路7号   \n",
       "17    医疗保健服务;综合医院;综合医院   090100       []         温泉东路117号附近   \n",
       "18    医疗保健服务;综合医院;综合医院   090100       []          良口镇新城路39号   \n",
       "19    医疗保健服务;综合医院;综合医院   090100       []              蟹山路3号   \n",
       "\n",
       "                location  ... discount_num event  \\\n",
       "0   113.287934,23.140398  ...            0    []   \n",
       "1   113.509681,22.825916  ...            0    []   \n",
       "2    113.508097,23.57873  ...            0    []   \n",
       "3   113.287241,23.125123  ...            0    []   \n",
       "4   113.270575,23.074429  ...            0    []   \n",
       "5   113.375933,22.910463  ...            0    []   \n",
       "6    113.075009,23.38882  ...            0    []   \n",
       "7   113.228907,23.134390  ...            0    []   \n",
       "8    113.296929,23.13292  ...            0    []   \n",
       "9   113.257766,23.092887  ...            0    []   \n",
       "10  113.314865,23.067898  ...            0    []   \n",
       "11   113.52936,23.057413  ...            0    []   \n",
       "12  113.397110,23.092924  ...            0    []   \n",
       "13  113.256554,23.118118  ...            0    []   \n",
       "14  113.303436,23.111513  ...            0    []   \n",
       "15  113.282345,23.136533  ...            0    []   \n",
       "16  113.461857,22.883977  ...            0    []   \n",
       "17  113.653698,23.653225  ...            0    []   \n",
       "18   113.734137,23.71654  ...            0    []   \n",
       "19  113.435902,23.097862  ...            0    []   \n",
       "\n",
       "                                             children  \\\n",
       "0                                                  []   \n",
       "1   [{'id': ' B0FFGLWMUT ', 'name': ' 南沙区第二人民医院(西南...   \n",
       "2                                                  []   \n",
       "3   [{'id': ' B0FFFHJ4G4 ', 'name': ' 广东省人民医院(东北2门...   \n",
       "4   [{'id': ' B0FFFZE6FN ', 'name': ' 广州医科大学附属第二医院...   \n",
       "5   [{'id': ' B00141JSK2 ', 'name': ' 广州市番禺中心医院(1号...   \n",
       "6                                                  []   \n",
       "7                                                  []   \n",
       "8                                                  []   \n",
       "9   [{'id': ' B0FFK8G0D5 ', 'name': ' 海珠区红十字会医院(南门...   \n",
       "10                                                 []   \n",
       "11  [{'id': ' B0FFK4GADK ', 'name': ' 广州开发区医院(南门) ...   \n",
       "12                                                 []   \n",
       "13  [{'id': ' B0FFG4DNKD ', 'name': ' 广东省中医院(东南门) ...   \n",
       "14  [{'id': ' B0FFFGTRBI ', 'name': ' 广东省中医院二沙岛分院(...   \n",
       "15  [{'id': ' B0FFH018J2 ', 'name': ' 市政医院(西门) ', ...   \n",
       "16  [{'id': ' B0FFK8OH3H ', 'name': ' 南沙区东涌医院(西北门)...   \n",
       "17                                                 []   \n",
       "18  [{'id': ' B0FFLNEHPL ', 'name': ' 良口镇医院(西北门) '...   \n",
       "19  [{'id': ' B0FFFADZ2D ', 'name': ' 黄埔区中医院停车场 ',...   \n",
       "\n",
       "                                               photos indoor_data.cpid  \\\n",
       "0   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "1   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "2   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "3   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "4   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "5   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "6                                                  []               []   \n",
       "7   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "8   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "9   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "10  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "11  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "12  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "13  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "14  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "15  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "16  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "17  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "18  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "19  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "\n",
       "   indoor_data.floor indoor_data.truefloor indoor_data.cmsid biz_ext.rating  \\\n",
       "0                 []                    []                []            3.5   \n",
       "1                 []                    []                []            3.5   \n",
       "2                 []                    []                []             []   \n",
       "3                 []                    []                []            2.0   \n",
       "4                 []                    []                []            2.0   \n",
       "5                 []                    []                []            4.5   \n",
       "6                 []                    []                []             []   \n",
       "7                 []                    []                []            4.5   \n",
       "8                 []                    []                []            3.0   \n",
       "9                 []                    []                []            3.0   \n",
       "10                []                    []                []             []   \n",
       "11                []                    []                []            2.0   \n",
       "12                []                    []                []            4.7   \n",
       "13                []                    []                []            5.0   \n",
       "14                []                    []                []            5.0   \n",
       "15                []                    []                []            3.5   \n",
       "16                []                    []                []             []   \n",
       "17                []                    []                []             []   \n",
       "18                []                    []                []             []   \n",
       "19                []                    []                []            3.0   \n",
       "\n",
       "   biz_ext.cost  \n",
       "0            []  \n",
       "1            []  \n",
       "2            []  \n",
       "3            []  \n",
       "4            []  \n",
       "5            []  \n",
       "6            []  \n",
       "7            []  \n",
       "8            []  \n",
       "9            []  \n",
       "10           []  \n",
       "11           []  \n",
       "12           []  \n",
       "13           []  \n",
       "14           []  \n",
       "15           []  \n",
       "16           []  \n",
       "17           []  \n",
       "18           []  \n",
       "19           []  \n",
       "\n",
       "[20 rows x 46 columns]"
      ]
     },
     "execution_count": 99,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_广州_医院 = pd.json_normalize(广州_医院[\"pois\"])\n",
    "df_广州_医院_广州市中医院 = pd.json_normalize(广州_医院[\"pois\"][9][\"photos\"])\n",
    "display(df_广州_医院_广州市中医院)\n",
    "df_广州_医院"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 周边搜素"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 111,
   "metadata": {},
   "outputs": [],
   "source": [
    "# F-1 \n",
    "def place_around(location,keywords=None,types=None,city=None,redius=None,sortrule=None,offset=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'keywords':keywords,\n",
    "        'location':location,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'redius':redius,\n",
    "        'sortrule':sortrule,\n",
    "        'offset':offset,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 112,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'count': '1', 'geocodes': [{'formatted_address': '广东省广州市番禺区广州大学', 'country': '中国', 'province': '广东省', 'citycode': '020', 'city': '广州市', 'district': '番禺区', 'township': [], 'neighborhood': {'name': [], 'type': []}, 'building': {'name': [], 'type': []}, 'adcode': '440113', 'street': [], 'number': [], 'location': '113.370555,23.039919', 'level': '兴趣点'}]}\n"
     ]
    }
   ],
   "source": [
    "广州大学 = geocode('广州大学')\n",
    "print(广州大学)\n",
    "广州大学_location = 广州大学['geocodes'][0]['location']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 115,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '865',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B0FFIFOE5L',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中国南方人才市场',\n",
       "   'type': '生活服务;人才市场;人才市场',\n",
       "   'typecode': '070800',\n",
       "   'biz_type': [],\n",
       "   'address': '大学城外环西路230号广州大学图书馆1层',\n",
       "   'location': '113.371094,23.040567',\n",
       "   'tel': '020-39339041;020-39339029',\n",
       "   'distance': '90',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFILG5EE',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中国南方人才市场大学城服务中心',\n",
       "   'type': '生活服务;人才市场;人才市场',\n",
       "   'typecode': '070800',\n",
       "   'biz_type': [],\n",
       "   'address': '广州市大学城外环西路230号广大图书馆',\n",
       "   'location': '113.371067,23.040689',\n",
       "   'tel': '020-39339029;020-39339041',\n",
       "   'distance': '100',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFM68BZI',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '数码快印中心',\n",
       "   'type': '生活服务;摄影冲印店;摄影冲印',\n",
       "   'typecode': '071300',\n",
       "   'biz_type': [],\n",
       "   'address': '大学城中环西路',\n",
       "   'location': '113.371093,23.039000',\n",
       "   'tel': [],\n",
       "   'distance': '116',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFFDCI3U',\n",
       "   'parent': 'B0FFLMJ44X',\n",
       "   'childtype': '309',\n",
       "   'name': '广州大学数码快印中心',\n",
       "   'type': '生活服务;生活服务场所;生活服务场所',\n",
       "   'typecode': '070000',\n",
       "   'biz_type': [],\n",
       "   'address': '大学城环校南路与大学城环校西路交叉口北150米',\n",
       "   'location': '113.371112,23.038926',\n",
       "   'tel': [],\n",
       "   'distance': '124',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFG9J5CC',\n",
       "   'parent': 'B00140AM0Y',\n",
       "   'childtype': '309',\n",
       "   'name': '广州大学教材服务中心',\n",
       "   'type': '生活服务;生活服务场所;生活服务场所',\n",
       "   'typecode': '070000',\n",
       "   'biz_type': [],\n",
       "   'address': '广州大学行政东后座105室',\n",
       "   'location': '113.371492,23.038966',\n",
       "   'tel': [],\n",
       "   'distance': '143',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFIB851Z',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '印务中心',\n",
       "   'type': '生活服务;生活服务场所;生活服务场所',\n",
       "   'typecode': '070000',\n",
       "   'biz_type': [],\n",
       "   'address': '大学城环校南路与大学城环校西路交叉口西北200米',\n",
       "   'location': '113.369437,23.038760',\n",
       "   'tel': [],\n",
       "   'distance': '172',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFFVZ1CG',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '妈妈的味道(广州大学商业中心店)',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '大学城外环西路230号广大商业中心c区一层1039',\n",
       "   'location': '113.372500,23.040423',\n",
       "   'tel': '13066305918',\n",
       "   'distance': '206',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFJIZ4D2',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '街电(星丝露广大店)',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'typecode': '072101',\n",
       "   'biz_type': [],\n",
       "   'address': '大学城中环西路230号广大商业中心2楼(近中环路)',\n",
       "   'location': '113.372365,23.040896',\n",
       "   'tel': [],\n",
       "   'distance': '214',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B00141VSF4',\n",
       "   'parent': 'B0FFHZATRU',\n",
       "   'childtype': '202',\n",
       "   'name': '星丝露(广大店)',\n",
       "   'type': '生活服务;美容美发店;美容美发店',\n",
       "   'typecode': '071100',\n",
       "   'biz_type': [],\n",
       "   'address': '大学城中环西路230号广大商业中心2楼(近中环路)',\n",
       "   'location': '113.372365,23.040896',\n",
       "   'tel': '15920379282',\n",
       "   'distance': '214',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFG9J0O4',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '肯德基甜品站(大学城店)',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店|餐饮服务;甜品店;甜品店',\n",
       "   'typecode': '050700|050900',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '广州大学商业中心1层',\n",
       "   'location': '113.372219,23.041109',\n",
       "   'tel': '020-39340910',\n",
       "   'distance': '215',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B00140NGB3',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '肯德基(大学城店)',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'typecode': '050301',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '小谷围广州大学城广州大学生活区商业中心1层A1028、2层A2009',\n",
       "   'location': '113.372218,23.041126',\n",
       "   'tel': '020-39340910;020-39340900',\n",
       "   'distance': '216',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFI1TQIP',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '大学生微创业基地',\n",
       "   'type': '商务住宅;产业园区;产业园区',\n",
       "   'typecode': '120100',\n",
       "   'biz_type': [],\n",
       "   'address': '大学城外环西路230号广州大学商业中心附近',\n",
       "   'location': '113.372423,23.040868',\n",
       "   'tel': [],\n",
       "   'distance': '218',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKPFZM7',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '老J鸡煲(广州大学商业中心店)',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '大学城中环西路广大商业中心一楼(广大商务酒店旁)',\n",
       "   'location': '113.372169,23.041204',\n",
       "   'tel': '18211255196',\n",
       "   'distance': '218',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLITCA3',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中国电信营业厅(广大店)',\n",
       "   'type': '生活服务;电讯营业厅;中国电信营业厅',\n",
       "   'typecode': '070601',\n",
       "   'biz_type': [],\n",
       "   'address': '广大商业中心二楼电信营业厅',\n",
       "   'location': '113.372398,23.040917',\n",
       "   'tel': '18054202202',\n",
       "   'distance': '219',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFJQU4TO',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '街电(车库美式餐厅)',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'typecode': '072101',\n",
       "   'biz_type': [],\n",
       "   'address': '大学城中环西路230号广大商业中心2层(娇兰佳人楼上)',\n",
       "   'location': '113.372116,23.041270',\n",
       "   'tel': [],\n",
       "   'distance': '219',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKSC06G',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '2(大学城)',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '大学城专线1路大学城专线4路大学城南亭牌坊565路外环西路公交总站',\n",
       "   'location': '113.372131,23.041268',\n",
       "   'tel': [],\n",
       "   'distance': '220',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLKMCCU',\n",
       "   'parent': 'B00140AM0Y',\n",
       "   'childtype': '309',\n",
       "   'name': '广州大学众创空间商业中心',\n",
       "   'type': '商务住宅;产业园区;产业园区',\n",
       "   'typecode': '120100',\n",
       "   'biz_type': [],\n",
       "   'address': [],\n",
       "   'location': '113.372497,23.040798',\n",
       "   'tel': [],\n",
       "   'distance': '221',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK6E5RB',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '瑞幸咖啡(广州大学商业中心店)',\n",
       "   'type': '餐饮服务;咖啡厅;咖啡厅',\n",
       "   'typecode': '050500',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '小谷围街大学城外环西路230号大学商业中心A区二层A2347B号',\n",
       "   'location': '113.372368,23.041016',\n",
       "   'tel': [],\n",
       "   'distance': '222',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFGBI370',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '拾忆澳门茶记(广大店)',\n",
       "   'type': '餐饮服务;快餐厅;茶餐厅',\n",
       "   'typecode': '050305',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '大学城广大商业中心A区广大商务酒店二楼A2350(农业银行旁)',\n",
       "   'location': '113.372262,23.041162',\n",
       "   'tel': '020-23334000',\n",
       "   'distance': '222',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKZWDKF',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '遇见健康美食(广州大学商业中心店)',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '大学城中环西路206号广州大学商业中心F2',\n",
       "   'location': '113.372293,23.041141',\n",
       "   'tel': [],\n",
       "   'distance': '224',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []}]}"
      ]
     },
     "execution_count": 115,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# F-2 json信息\n",
    "广州大学_周边POI = place_around(广州大学_location)\n",
    "广州大学_周边POI"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 114,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>tel</th>\n",
       "      <th>distance</th>\n",
       "      <th>biz_ext</th>\n",
       "      <th>importance</th>\n",
       "      <th>shopid</th>\n",
       "      <th>shopinfo</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>photos</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B0FFIFOE5L</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中国南方人才市场</td>\n",
       "      <td>生活服务;人才市场;人才市场</td>\n",
       "      <td>070800</td>\n",
       "      <td>[]</td>\n",
       "      <td>大学城外环西路230号广州大学图书馆1层</td>\n",
       "      <td>113.371094,23.040567</td>\n",
       "      <td>020-39339041;020-39339029</td>\n",
       "      <td>90</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFILG5EE</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中国南方人才市场大学城服务中心</td>\n",
       "      <td>生活服务;人才市场;人才市场</td>\n",
       "      <td>070800</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州市大学城外环西路230号广大图书馆</td>\n",
       "      <td>113.371067,23.040689</td>\n",
       "      <td>020-39339029;020-39339041</td>\n",
       "      <td>100</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFM68BZI</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>数码快印中心</td>\n",
       "      <td>生活服务;摄影冲印店;摄影冲印</td>\n",
       "      <td>071300</td>\n",
       "      <td>[]</td>\n",
       "      <td>大学城中环西路</td>\n",
       "      <td>113.371093,23.039000</td>\n",
       "      <td>[]</td>\n",
       "      <td>116</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFFDCI3U</td>\n",
       "      <td>B0FFLMJ44X</td>\n",
       "      <td>309</td>\n",
       "      <td>广州大学数码快印中心</td>\n",
       "      <td>生活服务;生活服务场所;生活服务场所</td>\n",
       "      <td>070000</td>\n",
       "      <td>[]</td>\n",
       "      <td>大学城环校南路与大学城环校西路交叉口北150米</td>\n",
       "      <td>113.371112,23.038926</td>\n",
       "      <td>[]</td>\n",
       "      <td>124</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B0FFG9J5CC</td>\n",
       "      <td>B00140AM0Y</td>\n",
       "      <td>309</td>\n",
       "      <td>广州大学教材服务中心</td>\n",
       "      <td>生活服务;生活服务场所;生活服务场所</td>\n",
       "      <td>070000</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州大学行政东后座105室</td>\n",
       "      <td>113.371492,23.038966</td>\n",
       "      <td>[]</td>\n",
       "      <td>143</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0FFIB851Z</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>印务中心</td>\n",
       "      <td>生活服务;生活服务场所;生活服务场所</td>\n",
       "      <td>070000</td>\n",
       "      <td>[]</td>\n",
       "      <td>大学城环校南路与大学城环校西路交叉口西北200米</td>\n",
       "      <td>113.369437,23.038760</td>\n",
       "      <td>[]</td>\n",
       "      <td>172</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFFVZ1CG</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>妈妈的味道(广州大学商业中心店)</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>大学城外环西路230号广大商业中心c区一层1039</td>\n",
       "      <td>113.372500,23.040423</td>\n",
       "      <td>13066305918</td>\n",
       "      <td>206</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFJIZ4D2</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>街电(星丝露广大店)</td>\n",
       "      <td>生活服务;共享设备;充电宝</td>\n",
       "      <td>072101</td>\n",
       "      <td>[]</td>\n",
       "      <td>大学城中环西路230号广大商业中心2楼(近中环路)</td>\n",
       "      <td>113.372365,23.040896</td>\n",
       "      <td>[]</td>\n",
       "      <td>214</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B00141VSF4</td>\n",
       "      <td>B0FFHZATRU</td>\n",
       "      <td>202</td>\n",
       "      <td>星丝露(广大店)</td>\n",
       "      <td>生活服务;美容美发店;美容美发店</td>\n",
       "      <td>071100</td>\n",
       "      <td>[]</td>\n",
       "      <td>大学城中环西路230号广大商业中心2楼(近中环路)</td>\n",
       "      <td>113.372365,23.040896</td>\n",
       "      <td>15920379282</td>\n",
       "      <td>214</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFG9J0O4</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>肯德基甜品站(大学城店)</td>\n",
       "      <td>餐饮服务;冷饮店;冷饮店|餐饮服务;甜品店;甜品店</td>\n",
       "      <td>050700|050900</td>\n",
       "      <td>diner</td>\n",
       "      <td>广州大学商业中心1层</td>\n",
       "      <td>113.372219,23.041109</td>\n",
       "      <td>020-39340910</td>\n",
       "      <td>215</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B00140NGB3</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>肯德基(大学城店)</td>\n",
       "      <td>餐饮服务;快餐厅;肯德基</td>\n",
       "      <td>050301</td>\n",
       "      <td>diner</td>\n",
       "      <td>小谷围广州大学城广州大学生活区商业中心1层A1028、2层A2009</td>\n",
       "      <td>113.372218,23.041126</td>\n",
       "      <td>020-39340910;020-39340900</td>\n",
       "      <td>216</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFI1TQIP</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>大学生微创业基地</td>\n",
       "      <td>商务住宅;产业园区;产业园区</td>\n",
       "      <td>120100</td>\n",
       "      <td>[]</td>\n",
       "      <td>大学城外环西路230号广州大学商业中心附近</td>\n",
       "      <td>113.372423,23.040868</td>\n",
       "      <td>[]</td>\n",
       "      <td>218</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFKPFZM7</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>老J鸡煲(广州大学商业中心店)</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "      <td>050100</td>\n",
       "      <td>diner</td>\n",
       "      <td>大学城中环西路广大商业中心一楼(广大商务酒店旁)</td>\n",
       "      <td>113.372169,23.041204</td>\n",
       "      <td>18211255196</td>\n",
       "      <td>218</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFLITCA3</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中国电信营业厅(广大店)</td>\n",
       "      <td>生活服务;电讯营业厅;中国电信营业厅</td>\n",
       "      <td>070601</td>\n",
       "      <td>[]</td>\n",
       "      <td>广大商业中心二楼电信营业厅</td>\n",
       "      <td>113.372398,23.040917</td>\n",
       "      <td>18054202202</td>\n",
       "      <td>219</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFJQU4TO</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>街电(车库美式餐厅)</td>\n",
       "      <td>生活服务;共享设备;充电宝</td>\n",
       "      <td>072101</td>\n",
       "      <td>[]</td>\n",
       "      <td>大学城中环西路230号广大商业中心2层(娇兰佳人楼上)</td>\n",
       "      <td>113.372116,23.041270</td>\n",
       "      <td>[]</td>\n",
       "      <td>219</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFKSC06G</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>2(大学城)</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>大学城专线1路大学城专线4路大学城南亭牌坊565路外环西路公交总站</td>\n",
       "      <td>113.372131,23.041268</td>\n",
       "      <td>[]</td>\n",
       "      <td>220</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0FFLKMCCU</td>\n",
       "      <td>B00140AM0Y</td>\n",
       "      <td>309</td>\n",
       "      <td>广州大学众创空间商业中心</td>\n",
       "      <td>商务住宅;产业园区;产业园区</td>\n",
       "      <td>120100</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.372497,23.040798</td>\n",
       "      <td>[]</td>\n",
       "      <td>221</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFK6E5RB</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>瑞幸咖啡(广州大学商业中心店)</td>\n",
       "      <td>餐饮服务;咖啡厅;咖啡厅</td>\n",
       "      <td>050500</td>\n",
       "      <td>diner</td>\n",
       "      <td>小谷围街大学城外环西路230号大学商业中心A区二层A2347B号</td>\n",
       "      <td>113.372368,23.041016</td>\n",
       "      <td>[]</td>\n",
       "      <td>222</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFGBI370</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>拾忆澳门茶记(广大店)</td>\n",
       "      <td>餐饮服务;快餐厅;茶餐厅</td>\n",
       "      <td>050305</td>\n",
       "      <td>diner</td>\n",
       "      <td>大学城广大商业中心A区广大商务酒店二楼A2350(农业银行旁)</td>\n",
       "      <td>113.372262,23.041162</td>\n",
       "      <td>020-23334000</td>\n",
       "      <td>222</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFKZWDKF</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>遇见健康美食(广州大学商业中心店)</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>大学城中环西路206号广州大学商业中心F2</td>\n",
       "      <td>113.372293,23.041141</td>\n",
       "      <td>[]</td>\n",
       "      <td>224</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id      parent childtype               name  \\\n",
       "0   B0FFIFOE5L          []        []           中国南方人才市场   \n",
       "1   B0FFILG5EE          []        []    中国南方人才市场大学城服务中心   \n",
       "2   B0FFM68BZI          []        []             数码快印中心   \n",
       "3   B0FFFDCI3U  B0FFLMJ44X       309         广州大学数码快印中心   \n",
       "4   B0FFG9J5CC  B00140AM0Y       309         广州大学教材服务中心   \n",
       "5   B0FFIB851Z          []        []               印务中心   \n",
       "6   B0FFFVZ1CG          []        []   妈妈的味道(广州大学商业中心店)   \n",
       "7   B0FFJIZ4D2          []        []         街电(星丝露广大店)   \n",
       "8   B00141VSF4  B0FFHZATRU       202           星丝露(广大店)   \n",
       "9   B0FFG9J0O4          []        []       肯德基甜品站(大学城店)   \n",
       "10  B00140NGB3          []        []          肯德基(大学城店)   \n",
       "11  B0FFI1TQIP          []        []           大学生微创业基地   \n",
       "12  B0FFKPFZM7          []        []    老J鸡煲(广州大学商业中心店)   \n",
       "13  B0FFLITCA3          []        []       中国电信营业厅(广大店)   \n",
       "14  B0FFJQU4TO          []        []         街电(车库美式餐厅)   \n",
       "15  B0FFKSC06G          []        []             2(大学城)   \n",
       "16  B0FFLKMCCU  B00140AM0Y       309       广州大学众创空间商业中心   \n",
       "17  B0FFK6E5RB          []        []    瑞幸咖啡(广州大学商业中心店)   \n",
       "18  B0FFGBI370          []        []        拾忆澳门茶记(广大店)   \n",
       "19  B0FFKZWDKF          []        []  遇见健康美食(广州大学商业中心店)   \n",
       "\n",
       "                         type       typecode biz_type  \\\n",
       "0              生活服务;人才市场;人才市场         070800       []   \n",
       "1              生活服务;人才市场;人才市场         070800       []   \n",
       "2             生活服务;摄影冲印店;摄影冲印         071300       []   \n",
       "3          生活服务;生活服务场所;生活服务场所         070000       []   \n",
       "4          生活服务;生活服务场所;生活服务场所         070000       []   \n",
       "5          生活服务;生活服务场所;生活服务场所         070000       []   \n",
       "6                餐饮服务;快餐厅;快餐厅         050300    diner   \n",
       "7               生活服务;共享设备;充电宝         072101       []   \n",
       "8            生活服务;美容美发店;美容美发店         071100       []   \n",
       "9   餐饮服务;冷饮店;冷饮店|餐饮服务;甜品店;甜品店  050700|050900    diner   \n",
       "10               餐饮服务;快餐厅;肯德基         050301    diner   \n",
       "11             商务住宅;产业园区;产业园区         120100       []   \n",
       "12               餐饮服务;中餐厅;中餐厅         050100    diner   \n",
       "13         生活服务;电讯营业厅;中国电信营业厅         070601       []   \n",
       "14              生活服务;共享设备;充电宝         072101       []   \n",
       "15               餐饮服务;快餐厅;快餐厅         050300    diner   \n",
       "16             商务住宅;产业园区;产业园区         120100       []   \n",
       "17               餐饮服务;咖啡厅;咖啡厅         050500    diner   \n",
       "18               餐饮服务;快餐厅;茶餐厅         050305    diner   \n",
       "19               餐饮服务;快餐厅;快餐厅         050300    diner   \n",
       "\n",
       "                               address              location  \\\n",
       "0                 大学城外环西路230号广州大学图书馆1层  113.371094,23.040567   \n",
       "1                  广州市大学城外环西路230号广大图书馆  113.371067,23.040689   \n",
       "2                              大学城中环西路  113.371093,23.039000   \n",
       "3              大学城环校南路与大学城环校西路交叉口北150米  113.371112,23.038926   \n",
       "4                        广州大学行政东后座105室  113.371492,23.038966   \n",
       "5             大学城环校南路与大学城环校西路交叉口西北200米  113.369437,23.038760   \n",
       "6            大学城外环西路230号广大商业中心c区一层1039  113.372500,23.040423   \n",
       "7            大学城中环西路230号广大商业中心2楼(近中环路)  113.372365,23.040896   \n",
       "8            大学城中环西路230号广大商业中心2楼(近中环路)  113.372365,23.040896   \n",
       "9                           广州大学商业中心1层  113.372219,23.041109   \n",
       "10  小谷围广州大学城广州大学生活区商业中心1层A1028、2层A2009  113.372218,23.041126   \n",
       "11               大学城外环西路230号广州大学商业中心附近  113.372423,23.040868   \n",
       "12            大学城中环西路广大商业中心一楼(广大商务酒店旁)  113.372169,23.041204   \n",
       "13                       广大商业中心二楼电信营业厅  113.372398,23.040917   \n",
       "14         大学城中环西路230号广大商业中心2层(娇兰佳人楼上)  113.372116,23.041270   \n",
       "15   大学城专线1路大学城专线4路大学城南亭牌坊565路外环西路公交总站  113.372131,23.041268   \n",
       "16                                  []  113.372497,23.040798   \n",
       "17    小谷围街大学城外环西路230号大学商业中心A区二层A2347B号  113.372368,23.041016   \n",
       "18     大学城广大商业中心A区广大商务酒店二楼A2350(农业银行旁)  113.372262,23.041162   \n",
       "19               大学城中环西路206号广州大学商业中心F2  113.372293,23.041141   \n",
       "\n",
       "                          tel distance biz_ext importance shopid shopinfo  \\\n",
       "0   020-39339041;020-39339029       90      []         []     []        0   \n",
       "1   020-39339029;020-39339041      100      []         []     []        1   \n",
       "2                          []      116      []         []     []        0   \n",
       "3                          []      124      []         []     []        0   \n",
       "4                          []      143      []         []     []        0   \n",
       "5                          []      172      []         []     []        0   \n",
       "6                 13066305918      206      []         []     []        0   \n",
       "7                          []      214      []         []     []        0   \n",
       "8                 15920379282      214      []         []     []        0   \n",
       "9                020-39340910      215      []         []     []        0   \n",
       "10  020-39340910;020-39340900      216      []         []     []        0   \n",
       "11                         []      218      []         []     []        0   \n",
       "12                18211255196      218      []         []     []        0   \n",
       "13                18054202202      219      []         []     []        0   \n",
       "14                         []      219      []         []     []        0   \n",
       "15                         []      220      []         []     []        0   \n",
       "16                         []      221      []         []     []        0   \n",
       "17                         []      222      []         []     []        0   \n",
       "18               020-23334000      222      []         []     []        0   \n",
       "19                         []      224      []         []     []        0   \n",
       "\n",
       "   poiweight photos  \n",
       "0         []     []  \n",
       "1         []     []  \n",
       "2         []     []  \n",
       "3         []     []  \n",
       "4         []     []  \n",
       "5         []     []  \n",
       "6         []     []  \n",
       "7         []     []  \n",
       "8         []     []  \n",
       "9         []     []  \n",
       "10        []     []  \n",
       "11        []     []  \n",
       "12        []     []  \n",
       "13        []     []  \n",
       "14        []     []  \n",
       "15        []     []  \n",
       "16        []     []  \n",
       "17        []     []  \n",
       "18        []     []  \n",
       "19        []     []  "
      ]
     },
     "execution_count": 114,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# F-3 表格化，可扩展pandas处理\n",
    "df_广州大学_周边POI = pd.json_normalize(广州大学_周边POI['pois'])\n",
    "df_广州大学_周边POI"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "静态地图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 116,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "ename": "ModuleNotFoundError",
     "evalue": "No module named 'PIL'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mModuleNotFoundError\u001b[0m                       Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-116-764c5eae2f44>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[1;32mfrom\u001b[0m \u001b[0mPIL\u001b[0m \u001b[1;32mimport\u001b[0m \u001b[0mImage\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m      2\u001b[0m \u001b[1;32mfrom\u001b[0m \u001b[0mio\u001b[0m \u001b[1;32mimport\u001b[0m \u001b[0mBytesIO\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      3\u001b[0m \u001b[1;32mdef\u001b[0m \u001b[0mstaticmap\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mlocation\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mzoom\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0msize\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;32mNone\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mscale\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;36m1\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mmarkers\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;32mNone\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mlabels\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;32mNone\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mpaths\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;32mNone\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mtraffic\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mpage\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;32mNone\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0msig\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;32mNone\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m->\u001b[0m\u001b[0mdict\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      4\u001b[0m     \u001b[1;34m\"\"\"静态地图服务通过返回一张地图图片响应HTTP请求，使用户能够将高德地图以图片形式嵌入自己的网页中。用户可以指定请求的地图位置、图片大小、以及在地图上添加覆盖物，如标签、标注、折线、多边形\"\"\"\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      5\u001b[0m     \u001b[0murl\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;34m'https://restapi.amap.com/v3/staticmap?parameters'\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mModuleNotFoundError\u001b[0m: No module named 'PIL'"
     ]
    }
   ],
   "source": [
    "from PIL import Image\n",
    "from io import BytesIO\n",
    "def staticmap(location,zoom,size=None,scale=1,markers=None,labels=None,paths=None,traffic=0,page=None,sig=None)->dict:\n",
    "    \"\"\"静态地图服务通过返回一张地图图片响应HTTP请求，使用户能够将高德地图以图片形式嵌入自己的网页中。用户可以指定请求的地图位置、图片大小、以及在地图上添加覆盖物，如标签、标注、折线、多边形\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/staticmap?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'location':location,\n",
    "        'zoom':zoom,\n",
    "        'size':size,\n",
    "        'scale':scale,\n",
    "        'markers':markers,\n",
    "        'labels':labels,\n",
    "        'paths':paths,\n",
    "        'traffic':traffic,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = Image.open(BytesIO(response.content))\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 121,
   "metadata": {},
   "outputs": [],
   "source": [
    "from PIL import Image\n",
    "from io import BytesIO\n",
    "def staticmap(location,zoom,size=None,scale=1,markers=None,labels=None,paths=None,traffic=0,page=None,sig=None)->dict:\n",
    "    \"\"\"静态地图服务通过返回一张地图图片响应HTTP请求，使用户能够将高德地图以图片形式嵌入自己的网页中。用户可以指定请求的地图位置、图片大小、以及在地图上添加覆盖物，如标签、标注、折线、多边形\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/staticmap?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'location':location,\n",
    "        'zoom':zoom,\n",
    "        'size':size,\n",
    "        'scale':scale,\n",
    "        'markers':markers,\n",
    "        'labels':labels,\n",
    "        'paths':paths,\n",
    "        'traffic':traffic,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = Image.open(BytesIO(response.content))\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 122,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAADAFBMVEX++/zX5eP+/vzu8OX++f4AXrX7+ffa6PX48+zz9vvs8OLM5Kbx9+dmb1na2snx9un3+fn7+/nI26fU3rhlZ2n7/Pru7uX29/fO56jV4eX6+/zS4LTN5afM46jy9vje2M72+e3T6bHU3rbh7szl59q3t6zs6ufq8Ny7q8Ku0vJgY2a6tr3h6dbT37ba2tfs6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E7S6XC3FwGJu+KzuBvCzNXjDz7J0B/8l5G5h1aKYPgtlIQ3IBd49/pyGA5OQAMwKekfTN3u/2JjoSU/KFWPJzycTckmIqkY7vTRW2BKLD8XZ6x+cTATL+X8t8ARDtf70DbPtf//jXv/4VjPCp0VMghPix0Xvz3O8f5YZUeucnrgJB+cHNiadObQb/jg6e2px4EEhi4gkyUn8bTlfArM8D0cg0DRkMHpxB3tiZlwJMOTt5MvLNVLN51ebjMJ6bCvFdJr+yNacT9/lLRy9URz6bAAnjHNX7RIDsOnDgAFCLf35qa9Sf//wZlF1UfupH0VzWCQzTW8hlHbwgiNN/vDeu1YyP874BlfEAXhb1saw6nZh/pgdbbAqEm8R8IkDGhoNnASABx0P+uespyGPNmGUgOy0kF2cIgOy8Mb54XBIIS7iTgkLZIQOEWpa0GRDGwqWzvo6iwyllV2FIIIO7jkMNqQy5F/z/PVUMeJwYlAVydg+GJf/NAhARKeAcG8gCcpELpEFmMVZS5BqFUgv3tgGCSQBRdDilfCkeBWTw1K4/bOw4Puv48VkH1jy169TgkwHyvzx6JIBw1eGJAIFlEwwQJRezRGAoCcRKGREDIiniQC6CKcsaIP0bmgUfxSRc6DPJrY5LitxK/DKiPJIGouxiFk+dlEAgtA9ocyAWhFM4QlWdnEQzgMW/FQIB3+ZqD/+jiCyFW3VctBwQsoCYlTG0csTM/KzyLwPIRauBcMbEtkCW/ZRA6IDHtkD+f0zdfZmru5jZAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<PIL.PngImagePlugin.PngImageFile image mode=P size=400x400 at 0x27D01F11608>"
      ]
     },
     "execution_count": 122,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "staticmap(location=广州大学_location,zoom=16)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "ID查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 123,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'id': 'B0FFFAB6J2',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '首开广场',\n",
       "   'tag': [],\n",
       "   'type': '商务住宅;楼宇;商务写字楼',\n",
       "   'typecode': '120201',\n",
       "   'biz_type': [],\n",
       "   'address': '阜荣街10号',\n",
       "   'location': '116.473004,39.993306',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '110000',\n",
       "   'pname': '北京市',\n",
       "   'citycode': '010',\n",
       "   'cityname': '北京市',\n",
       "   'adcode': '110105',\n",
       "   'adname': '朝阳区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5916739702',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'J50F001020_342662',\n",
       "   'entr_location': '116.474531,39.993159',\n",
       "   'business_area': '望京',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-02 15:17:17',\n",
       "   'indoor_map': '1',\n",
       "   'indoor_data': {'cpid': 'B0FFFAB6J2',\n",
       "    'floor': [],\n",
       "    'truefloor': [],\n",
       "    'cmsid': 'TY000191_B0FFFAB6J2'},\n",
       "   'indoor_src': '高德地图',\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'deep_info': {'deepsrc': []},\n",
       "   'rich_content': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': '效果图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a9836f620749c34742cf1ab67dc98f08'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b11166a310a21470acde3a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b11166a310a21470acde31'}]}]}"
      ]
     },
     "execution_count": 123,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def place_detail(id,sig=None)->dict:\n",
    "    '''输入所在位置，以此位置的id进行搜索，即可返回该地址id地址类型信息'''\n",
    "    url = 'https://restapi.amap.com/v3/place/detail?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'id':id,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "广场id = place_detail('B0FFFAB6J2')#广场id\n",
    "广场id"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "IP定位"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 125,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '福建省',\n",
       " 'city': '厦门市',\n",
       " 'adcode': '350200',\n",
       " 'rectangle': '118.0095363,24.38638468;118.2356787,24.57946087'}"
      ]
     },
     "execution_count": 125,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def ip_location(ip,sig=None)->dict:\n",
    "    '''IP定位是一个简单的HTTP接口，根据用户输入的IP地址，能够快速的帮用户定位IP的所在位置'''\n",
    "    url = 'https://restapi.amap.com/v3/ip?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'ip':ip,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "myip = ip_location('218.107.216.68')\n",
    "myip"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "批量请求接口"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 126,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "\n",
    "url=\"https://restapi.amap.com/v3/batch?key=22aa7e82cf8054ef068c30624eb88e04\"\n",
    "\n",
    "'''批量接口通过用户传入合并后的请求，同时返回多个请求的顺序集合，目前最多支持20个子请求。 返回的顺序与子请求的顺序一致。'''\n",
    "\n",
    "def batch():\n",
    "    header={\n",
    "                'Connection':'close',\n",
    "                'Accept':'application/json,image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, */*',\n",
    "                'User-Agent':'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)',\n",
    "                \"Content-Type\": \"application/json; charset=UTF-8\"\n",
    "    }\n",
    "    body={\n",
    "    \"ops\": [\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=22aa7e82cf8054ef068c30624eb88e04&location=116.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "        },\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=22aa7e82cf8054ef068c30624eb88e04&location=118.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "        }\n",
    "    ]\n",
    "}\n",
    "\n",
    "    r=requests.post(url,json=body).json()\n",
    "\n",
    "    return r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 127,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'status': 200,\n",
       "  'body': {'suggestion': {'keywords': {}, 'cities': {}},\n",
       "   'info': 'OK',\n",
       "   'status': '1',\n",
       "   'count': '888',\n",
       "   'pois': [{'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFKKSDDS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.511528,39.270463',\n",
       "     'distance': '1082',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '李庄子村兰阳草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJM772Z',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.513958,39.270648',\n",
       "     'distance': '1205',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永清镇北辛溜附近',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080503',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C16BMA',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.480285,39.291357',\n",
       "     'distance': '2509',\n",
       "     'tel': '13363650160',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永金一桥东500米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/3e517731940c4684ee94acdfb8c39b26',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/8eb4c3eb92489cb32cafa17205dc0112',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/163f3273c7c60016197a2e7912df53df',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;休闲场所;采摘园',\n",
       "     'shopinfo': '0',\n",
       "     'name': '开心草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLPYFW5',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496816,39.302615',\n",
       "     'distance': '2785',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路225东北100米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'DIY儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080603',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLAIP6H',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496230,39.303248',\n",
       "     'distance': '2865',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'seat_ordering': '0', 'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;影剧院;剧场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '向阳禾理想城梦剧场',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C0IMLS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496593,39.304251',\n",
       "     'distance': '2967',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': '3.5', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路179号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/af47a5f4f741f6a3ad170e226f856b92',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '梦想网吧(益昌南路店)',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080119',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFMDQ6D7',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.493187,39.304274',\n",
       "     'distance': '3045',\n",
       "     'tel': '13141201944',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '武隆南路宏益街',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/0fb1662d06ad761b51070fe0ca4c26c5',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;运动场馆;跆拳道场馆',\n",
       "     'shopinfo': '1',\n",
       "     'name': '龙圣跆拳道馆',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJQZNZW',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497741,39.309459',\n",
       "     'distance': '3519',\n",
       "     'tel': '15210485655',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路268号新旺小区门口',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/67416ad37c69db61c270016fa6f430cc',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/d89fd2e7d4b62cba6187c87cc838bb89',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/dbaae4d6ace1004675ce4f252088ffe6',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '1',\n",
       "     'name': '熙瑞国际游泳健身会所',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080113',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFM4EHTE',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.495838,39.309940',\n",
       "     'distance': '3600',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;台球厅',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'K9台球',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJKVFLQ',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497249,39.310649',\n",
       "     'distance': '3656',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌中路与益昌南路交叉口西南50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '网咖',\n",
       "     'childtype': {}}],\n",
       "   'infocode': '10000'},\n",
       "  'header': {'gsid': '011224234235158763610533500019564975967',\n",
       "   'Vary': 'Accept-Encoding',\n",
       "   'Content-Type': 'application/json;charset=UTF-8',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.141',\n",
       "   'Content-Length': 5294,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid',\n",
       "   'X-Powered-By': 'ring/1.0.0'}},\n",
       " {'status': 200,\n",
       "  'body': {'suggestion': {'keywords': {}, 'cities': {}},\n",
       "   'info': 'OK',\n",
       "   'status': '1',\n",
       "   'count': '876',\n",
       "   'pois': [{'typecode': '080000',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFIT4V37',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.509300,39.261324',\n",
       "     'distance': '1935',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '昌丰路与昌盛街交叉口东150米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '利民老年公寓',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080500',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFM1WN4Q',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.473800,39.284305',\n",
       "     'distance': '2684',\n",
       "     'tel': '13102692203;15032998415',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永丰路与建设大街交叉口北行200米再东行200米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/02f9a9353f15bb7c882c281addaca79a',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/462da2324343c04c255e5b6b55403952',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/dfc87db906b2994dae80342d4563b1e9',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;休闲场所;休闲场所',\n",
       "     'shopinfo': '1',\n",
       "     'name': '唐山兵途枪战运动',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080301',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFF2T193',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.471098,39.281979',\n",
       "     'distance': '2861',\n",
       "     'tel': '0315-8037777',\n",
       "     'biz_ext': {'rating': '4.3', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '建设大街与永丰路交叉口西南角',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/c8fd0a18befbe849ce8df7908d88ed24',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/468baaf5453e6c1b38d0c4c417183b40',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/a0a5fff0b63e60b3508c2ecb197d07e5',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;夜总会',\n",
       "     'shopinfo': '0',\n",
       "     'name': '一代佳人夜总会',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFKPS8TZ',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.471344,39.273170',\n",
       "     'distance': '2864',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '垦丰大街与永丰路交叉口南50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '新少年跆拳道馆',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080402',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013B031EO',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.469256,39.278622',\n",
       "     'distance': '2989',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '曙光街23号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;度假疗养场所;疗养院',\n",
       "     'shopinfo': '0',\n",
       "     'name': '光荣院(曙光街)',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080500',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFHF91Y9',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.467429,39.273141',\n",
       "     'distance': '3196',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '垦丰大街8号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;休闲场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '曹妃甸区老干部活动中心',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080119',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLDK6TP',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.466867,39.281969',\n",
       "     'distance': '3222',\n",
       "     'tel': '17736580504',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '建设大街红赫世家东底商58号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/b59e23956de23e47401416a6b4808c0c',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;运动场馆;跆拳道场馆',\n",
       "     'shopinfo': '0',\n",
       "     'name': '泽仁跆拳道',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '滦南县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFH9MB8R',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.527757,39.301926',\n",
       "     'distance': '3343',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '杨柏线北50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '陶乐宝儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080304',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLOR4DN',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.466494,39.287701',\n",
       "     'distance': '3395',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '青年城二期东底商24号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/29997dd7b0c66b1dc6f15a253918ccf2',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/098df33a76f03e8d55672683f63da5d8',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;酒吧',\n",
       "     'shopinfo': '1',\n",
       "     'name': 'ELK酒吧',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080113',\n",
       "     'adname': '滦南县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFMB6BAG',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.528670,39.302678',\n",
       "     'distance': '3457',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;台球厅',\n",
       "     'shopinfo': '0',\n",
       "     'name': '下午时光台球俱乐部',\n",
       "     'childtype': {}}],\n",
       "   'infocode': '10000'},\n",
       "  'header': {'gsid': '011224234235158763610533500019564975967',\n",
       "   'Vary': 'Accept-Encoding',\n",
       "   'Content-Type': 'application/json;charset=UTF-8',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.130',\n",
       "   'Content-Length': 5564,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid',\n",
       "   'X-Powered-By': 'ring/1.0.0'}}]"
      ]
     },
     "execution_count": 127,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "batch()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "坐标转换"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 129,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '116.473683158833,39.285616133943'}"
      ]
     },
     "execution_count": 129,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def coordinate_convert(locations,coordsys=None,sig=None)->dict:\n",
    "    '''坐标转换是一类简单的HTTP接口，能够将用户输入的非高德坐标（GPS坐标、mapbar坐标、baidu坐标）转换成高德坐标。'''\n",
    "    url = 'https://restapi.amap.com/v3/assistant/coordinate/convert?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'locations':locations,\n",
    "        'coordsys':coordsys,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "农家乐= coordinate_convert(locations=\"116.480285,39.291357\",coordsys=\"baidu\")\n",
    "农家乐"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "天气查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 131,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'lives': [{'province': '广东',\n",
       "   'city': '河源市',\n",
       "   'adcode': '441600',\n",
       "   'weather': '阴',\n",
       "   'temperature': '18',\n",
       "   'winddirection': '东',\n",
       "   'windpower': '≤3',\n",
       "   'humidity': '78',\n",
       "   'reporttime': '2020-04-23 17:52:43'}]}"
      ]
     },
     "execution_count": 131,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def weatherInfo(city,extensions='base')->dict:\n",
    "    \"\"\"天气查询是一个简单的HTTP接口，根据用户输入的adcode，查询目标区域当前/未来的天气情况\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/weather/weatherInfo?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'city':city,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "广东河源= weatherInfo(city=\"河源市\")\n",
    "广东河源"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "输入提示"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 132,
   "metadata": {},
   "outputs": [],
   "source": [
    "def inputtips(keywords,type=None,location=None,city=None,citylimit=None,datatype='all',sig=None)->dict:\n",
    "    \"\"\"输入提示是一类简单的HTTP接口，提供根据用户输入的关键词查询返回建议列表\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/assistant/inputtips?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'keywords':keywords,\n",
    "        'type':type,\n",
    "        'location':location,\n",
    "        'city':city,\n",
    "        'citylimit':citylimit,\n",
    "        'datatype':datatype,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 133,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': [],\n",
       "   'name': '景德镇市',\n",
       "   'district': '江西省景德镇市',\n",
       "   'adcode': '360202',\n",
       "   'location': [],\n",
       "   'address': '昌江区',\n",
       "   'typecode': '190104',\n",
       "   'city': []},\n",
       "  {'id': 'B031E009MZ',\n",
       "   'name': '景德镇站',\n",
       "   'district': '江西省景德镇市珠山区',\n",
       "   'adcode': '360203',\n",
       "   'location': '117.222372,29.285663',\n",
       "   'address': '通站路',\n",
       "   'typecode': '150200',\n",
       "   'city': []},\n",
       "  {'id': 'B031E00530',\n",
       "   'name': '景德镇东站',\n",
       "   'district': '江西省景德镇市珠山区',\n",
       "   'adcode': '360203',\n",
       "   'location': '117.239866,29.301309',\n",
       "   'address': '东站路与朝阳路交汇处北100米',\n",
       "   'typecode': '150210',\n",
       "   'city': []},\n",
       "  {'id': 'B031E0002B',\n",
       "   'name': '景德镇大酒店',\n",
       "   'district': '江西省景德镇市珠山区',\n",
       "   'adcode': '360203',\n",
       "   'location': '117.203352,29.292218',\n",
       "   'address': '珠山中路230号(珠山大桥旁)',\n",
       "   'typecode': '100103',\n",
       "   'city': []},\n",
       "  {'id': 'B031E00B52',\n",
       "   'name': '景德镇南站',\n",
       "   'district': '江西省景德镇市昌江区',\n",
       "   'adcode': '360202',\n",
       "   'location': '117.178719,29.252595',\n",
       "   'address': '岚山路',\n",
       "   'typecode': '150200',\n",
       "   'city': []},\n",
       "  {'id': 'B031E13VGV',\n",
       "   'name': '景德镇市殡仪馆',\n",
       "   'district': '江西省景德镇市昌江区',\n",
       "   'adcode': '360202',\n",
       "   'location': '117.154339,29.241145',\n",
       "   'address': '银曙路与364乡道交叉口西150米',\n",
       "   'typecode': '071903',\n",
       "   'city': []},\n",
       "  {'id': 'B031E13S3A',\n",
       "   'name': '景德镇市司法局',\n",
       "   'district': '江西省景德镇市昌江区',\n",
       "   'adcode': '360202',\n",
       "   'location': '117.175949,29.277904',\n",
       "   'address': '瓷都大道836号',\n",
       "   'typecode': '130500',\n",
       "   'city': []},\n",
       "  {'id': 'B031E0HT42',\n",
       "   'name': '景德镇瑶里',\n",
       "   'district': '江西省景德镇市浮梁县',\n",
       "   'adcode': '360222',\n",
       "   'location': '117.583628,29.560282',\n",
       "   'address': '瑶里镇',\n",
       "   'typecode': '110202',\n",
       "   'city': []},\n",
       "  {'id': 'B031E13VC8',\n",
       "   'name': '景德镇市体育中心',\n",
       "   'district': '江西省景德镇市昌江区',\n",
       "   'adcode': '360202',\n",
       "   'location': '117.167725,29.307053',\n",
       "   'address': '吕蒙乡石洪路1号',\n",
       "   'typecode': '080101',\n",
       "   'city': []},\n",
       "  {'id': 'B031E0HVRO',\n",
       "   'name': '景德镇市气象局',\n",
       "   'district': '江西省景德镇市昌江区',\n",
       "   'adcode': '360202',\n",
       "   'location': '117.173558,29.263225',\n",
       "   'address': '瓷都大道219号',\n",
       "   'typecode': '130103',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 133,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "输入提示= inputtips(keywords='景德镇')\n",
    "输入提示"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 134,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>name</th>\n",
       "      <th>district</th>\n",
       "      <th>adcode</th>\n",
       "      <th>location</th>\n",
       "      <th>address</th>\n",
       "      <th>typecode</th>\n",
       "      <th>city</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>[]</td>\n",
       "      <td>景德镇市</td>\n",
       "      <td>江西省景德镇市</td>\n",
       "      <td>360202</td>\n",
       "      <td>[]</td>\n",
       "      <td>昌江区</td>\n",
       "      <td>190104</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B031E009MZ</td>\n",
       "      <td>景德镇站</td>\n",
       "      <td>江西省景德镇市珠山区</td>\n",
       "      <td>360203</td>\n",
       "      <td>117.222372,29.285663</td>\n",
       "      <td>通站路</td>\n",
       "      <td>150200</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B031E00530</td>\n",
       "      <td>景德镇东站</td>\n",
       "      <td>江西省景德镇市珠山区</td>\n",
       "      <td>360203</td>\n",
       "      <td>117.239866,29.301309</td>\n",
       "      <td>东站路与朝阳路交汇处北100米</td>\n",
       "      <td>150210</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B031E0002B</td>\n",
       "      <td>景德镇大酒店</td>\n",
       "      <td>江西省景德镇市珠山区</td>\n",
       "      <td>360203</td>\n",
       "      <td>117.203352,29.292218</td>\n",
       "      <td>珠山中路230号(珠山大桥旁)</td>\n",
       "      <td>100103</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B031E00B52</td>\n",
       "      <td>景德镇南站</td>\n",
       "      <td>江西省景德镇市昌江区</td>\n",
       "      <td>360202</td>\n",
       "      <td>117.178719,29.252595</td>\n",
       "      <td>岚山路</td>\n",
       "      <td>150200</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B031E13VGV</td>\n",
       "      <td>景德镇市殡仪馆</td>\n",
       "      <td>江西省景德镇市昌江区</td>\n",
       "      <td>360202</td>\n",
       "      <td>117.154339,29.241145</td>\n",
       "      <td>银曙路与364乡道交叉口西150米</td>\n",
       "      <td>071903</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B031E13S3A</td>\n",
       "      <td>景德镇市司法局</td>\n",
       "      <td>江西省景德镇市昌江区</td>\n",
       "      <td>360202</td>\n",
       "      <td>117.175949,29.277904</td>\n",
       "      <td>瓷都大道836号</td>\n",
       "      <td>130500</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B031E0HT42</td>\n",
       "      <td>景德镇瑶里</td>\n",
       "      <td>江西省景德镇市浮梁县</td>\n",
       "      <td>360222</td>\n",
       "      <td>117.583628,29.560282</td>\n",
       "      <td>瑶里镇</td>\n",
       "      <td>110202</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B031E13VC8</td>\n",
       "      <td>景德镇市体育中心</td>\n",
       "      <td>江西省景德镇市昌江区</td>\n",
       "      <td>360202</td>\n",
       "      <td>117.167725,29.307053</td>\n",
       "      <td>吕蒙乡石洪路1号</td>\n",
       "      <td>080101</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B031E0HVRO</td>\n",
       "      <td>景德镇市气象局</td>\n",
       "      <td>江西省景德镇市昌江区</td>\n",
       "      <td>360202</td>\n",
       "      <td>117.173558,29.263225</td>\n",
       "      <td>瓷都大道219号</td>\n",
       "      <td>130103</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "           id      name    district  adcode              location  \\\n",
       "0          []      景德镇市     江西省景德镇市  360202                    []   \n",
       "1  B031E009MZ      景德镇站  江西省景德镇市珠山区  360203  117.222372,29.285663   \n",
       "2  B031E00530     景德镇东站  江西省景德镇市珠山区  360203  117.239866,29.301309   \n",
       "3  B031E0002B    景德镇大酒店  江西省景德镇市珠山区  360203  117.203352,29.292218   \n",
       "4  B031E00B52     景德镇南站  江西省景德镇市昌江区  360202  117.178719,29.252595   \n",
       "5  B031E13VGV   景德镇市殡仪馆  江西省景德镇市昌江区  360202  117.154339,29.241145   \n",
       "6  B031E13S3A   景德镇市司法局  江西省景德镇市昌江区  360202  117.175949,29.277904   \n",
       "7  B031E0HT42     景德镇瑶里  江西省景德镇市浮梁县  360222  117.583628,29.560282   \n",
       "8  B031E13VC8  景德镇市体育中心  江西省景德镇市昌江区  360202  117.167725,29.307053   \n",
       "9  B031E0HVRO   景德镇市气象局  江西省景德镇市昌江区  360202  117.173558,29.263225   \n",
       "\n",
       "             address typecode city  \n",
       "0                昌江区   190104   []  \n",
       "1                通站路   150200   []  \n",
       "2    东站路与朝阳路交汇处北100米   150210   []  \n",
       "3    珠山中路230号(珠山大桥旁)   100103   []  \n",
       "4                岚山路   150200   []  \n",
       "5  银曙路与364乡道交叉口西150米   071903   []  \n",
       "6           瓷都大道836号   130500   []  \n",
       "7                瑶里镇   110202   []  \n",
       "8           吕蒙乡石洪路1号   080101   []  \n",
       "9           瓷都大道219号   130103   []  "
      ]
     },
     "execution_count": 134,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_输入提示= pd.json_normalize(输入提示['tips'])\n",
    "df_输入提示"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "交通态势"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 135,
   "metadata": {},
   "outputs": [],
   "source": [
    "def traffic_rectangle(rectangle,level,extensions='all',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/traffic/status/rectangle?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'rectangle':rectangle,\n",
    "        'level':level, \n",
    "        'extensions':extensions,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 136,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'trafficinfo': {'description': '北四环路：北辰西桥附近自西向东行驶缓慢。',\n",
       "  'evaluation': {'expedite': '92.31%',\n",
       "   'congested': '7.69%',\n",
       "   'blocked': '0.00%',\n",
       "   'unknown': '0.00%',\n",
       "   'status': '2',\n",
       "   'description': '轻度拥堵'},\n",
       "  'roads': [{'name': '北四环路',\n",
       "    'status': '2',\n",
       "    'direction': '从北辰西桥到北辰桥',\n",
       "    'angle': '2',\n",
       "    'speed': '25',\n",
       "    'lcodes': '4708',\n",
       "    'polyline': '116.38929,39.9878502;116.397903,39.988102'},\n",
       "   {'name': '北三环路',\n",
       "    'status': '1',\n",
       "    'direction': '从苏州桥到新风北街',\n",
       "    'angle': '7',\n",
       "    'speed': '50',\n",
       "    'lcodes': '5838,4733,5835,4732,5882,5878,4731,5897,4730,6489',\n",
       "    'polyline': '116.308372,39.9611397;116.308411,39.9612885;116.308426,39.9613914;116.308441,39.961483;116.308479,39.9615746;116.308525,39.9616623;116.308563,39.9617271;116.308708,39.9619865;116.308868,39.9621811;116.308998,39.9623299;116.309135,39.9624481;116.309372,39.9626236;116.309509,39.9627075;116.309624,39.9627686;116.309807,39.9628563;116.310005,39.962944;116.310219,39.9630203;116.310394,39.9630737;116.311234,39.9633369;116.312263,39.9636879;116.312965,39.9639549;116.314255,39.9644165;116.315697,39.9649506;116.31662,39.9652939;116.317619,39.9656677;116.31826,39.9658928;116.319618,39.9663925;116.320145,39.9665642;116.32058,39.9666939;116.320953,39.9667892;116.321648,39.9669228;116.321869,39.9669571;116.322197,39.9669914;116.322533,39.9670219;116.322998,39.9670486;116.324104,39.9671021;116.324745,39.9671288;116.325081,39.9671364;116.32653,39.9672012;116.328979,39.9672966;116.330101,39.9673386;116.330772,39.9673653;116.332535,39.9674263;116.33374,39.9674606;116.334045,39.9674683;116.335228,39.967495;116.336304,39.9675064;116.340797,39.9675407;116.343964,39.9675789;116.345161,39.9675903;116.34626,39.9676018;116.347557,39.9676018;116.348083,39.967617;116.348465,39.9676208;116.349258,39.9676361;116.351402,39.9676361;116.353104,39.9676437;116.353348,39.9676476;116.354546,39.9676552;116.354866,39.967659;116.357048,39.9676819;116.358582,39.9676437;116.361137,39.9676476;116.36187,39.9676628;116.362915,39.9676666;116.364426,39.9676743;116.366669,39.9677048;116.368797,39.9678078;116.370506,39.9678535;116.372978,39.9679451;116.37394,39.9679718;116.375557,39.9680138'},\n",
       "   {'name': '北三环路',\n",
       "    'status': '1',\n",
       "    'direction': '从北太平桥到联想桥',\n",
       "    'angle': '180',\n",
       "    'speed': '50',\n",
       "    'lcodes': '-5897,-4731,-5878,-5882,-4732',\n",
       "    'polyline': '116.366661,39.9678574;116.364433,39.9678116;116.361763,39.9677925;116.360542,39.9677849;116.360229,39.9677811;116.358894,39.9677773;116.357048,39.9677811;116.354248,39.9677544;116.349884,39.9677391;116.349258,39.9677391;116.348763,39.9677315;116.347961,39.9677238;116.347427,39.96772;116.345901,39.9677124;116.345177,39.967701;116.343521,39.9676933;116.342667,39.9676743;116.341568,39.9676666;116.340668,39.9676552;116.339737,39.9676476;116.337715,39.9676323;116.336281,39.9676285;116.33358,39.9675751;116.332748,39.9675484;116.33239,39.9675369;116.330025,39.967453'},\n",
       "   {'name': '西土城路',\n",
       "    'status': '1',\n",
       "    'direction': '从西直门北大街到蓟门桥',\n",
       "    'angle': '91',\n",
       "    'speed': '45',\n",
       "    'lcodes': '6045,6043,6042',\n",
       "    'polyline': '116.355164,39.9556694;116.355125,39.9562759;116.35511,39.9571609;116.355011,39.9595947;116.354965,39.9611626;116.354881,39.962513;116.354813,39.9638901;116.354774,39.9646606;116.354729,39.9655113;116.354683,39.9664383;116.354652,39.9668274;116.35463,39.9672127;116.354576,39.9683113;116.354561,39.9690628'},\n",
       "   {'name': '西土城路',\n",
       "    'status': '1',\n",
       "    'direction': '从学知桥到蓟门桥',\n",
       "    'angle': '268',\n",
       "    'speed': '50',\n",
       "    'lcodes': '-6041,-6042',\n",
       "    'polyline': '116.353882,39.9792252;116.353912,39.9787941;116.353958,39.9778633;116.353943,39.9774628;116.353928,39.9773483;116.353905,39.9772148;116.353859,39.9770851;116.353798,39.9769478;116.353722,39.9768105;116.353561,39.9765396;116.353371,39.9761848;116.35321,39.9758873;116.353149,39.9757614;116.353065,39.9755096;116.353027,39.975399;116.352997,39.975174;116.352997,39.9748459;116.353043,39.9742355;116.353065,39.9736176;116.353065,39.9733429;116.353104,39.9723434;116.353172,39.9709282;116.353264,39.9700279;116.353348,39.9695282;116.353401,39.9692574;116.353432,39.9690971;116.353546,39.9667168;116.353554,39.9664307;116.353546,39.9662971;116.353531,39.9661598;116.353493,39.965992;116.353432,39.9657707;116.35331,39.9653625'}]}}"
      ]
     },
     "execution_count": 136,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a= traffic_rectangle(rectangle='116.351147,39.966309;116.357134,39.968727',level='3')\n",
    "a"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "指定线路交通态势"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 142,
   "metadata": {},
   "outputs": [],
   "source": [
    "def traffic_road(name,city,level,adcode=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/traffic/status/road?parameters'\n",
    "    params={\n",
    "        'key':key_huang,\n",
    "        'name':name,\n",
    "        'city':city,\n",
    "        'adcode':adcode,\n",
    "        'level':level, \n",
    "        'extensions':extensions,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 150,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'trafficinfo': {'description': '厦禾路：双向畅通。',\n",
       "  'evaluation': {'expedite': '93.52%',\n",
       "   'congested': '0.00%',\n",
       "   'blocked': '0.00%',\n",
       "   'unknown': '6.48%',\n",
       "   'status': '2',\n",
       "   'description': '基本畅通'}}}"
      ]
     },
     "execution_count": 150,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "厦禾路=traffic_road(name='厦禾路',city='厦门市',level=4)\n",
    "厦禾路"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "地理围栏\n",
    "创建围栏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 144,
   "metadata": {},
   "outputs": [],
   "source": [
    "def geofence_create():\n",
    "    \"\"\"地理围栏服务是一类HTTP接口，提供在服务端，增删改查地理围栏的功能，同时支持对于设备与围栏关系进行监控。\"\"\"\n",
    "    url = \"https://restapi.amap.com/v4/geofence/meta?key=554c46280f7279e1beaeafbc0df80929\"\n",
    "    params = {\n",
    "        \"name\":\"创建围栏\",\n",
    "        \"repeat\":\"Mon,Tues,Wed,Thur,Fri,Sat,Sun\",\n",
    "        \"center\":\"115.672126,38.817129\",\n",
    "        \"enable\":\"true\",\n",
    "        \"radius\":\"3000\",\n",
    "        \"valid_time\":\"2020-05-21\",\n",
    "        \"time\":\"06:00,16:00;20:00,23:59\",\n",
    "        \"alert_condition\":\"enter;leave\"\n",
    "    }\n",
    "    response = requests.post(url,json=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 145,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'message': '新增围栏已存在', 'status': '106'},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 145,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geofence_create()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "查询围栏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 146,
   "metadata": {},
   "outputs": [],
   "source": [
    "def geofence_inquire():\n",
    "    \"\"\"地理围栏服务是一类HTTP接口，提供在服务端，增删改查地理围栏的功能，同时支持对于设备与围栏关系进行监控。\"\"\"\n",
    "    url = \"https://restapi.amap.com/v4/geofence/meta?key=22aa7e82cf8054ef068c30624eb88e04\"\n",
    "    params = {\n",
    "        \"id\":\"0\",\n",
    "        \"gid\":\"22f21938-1325-4be3-a35f-2782f8a3eb92\",\n",
    "        \"name\":\"创建围栏\"\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 147,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'page_no': 1, 'page_size': 20, 'rs_list': [], 'total_record': 0},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 147,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geofence_inquire()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "更新围栏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 148,
   "metadata": {},
   "outputs": [],
   "source": [
    "def geofence_update():\n",
    "    \"\"\"地理围栏服务是一类HTTP接口，提供在服务端，增删改查地理围栏的功能，同时支持对于设备与围栏关系进行监控。\"\"\"\n",
    "    url = \"https://restapi.amap.com/v4/geofence/meta?key=22aa7e82cf8054ef068c30624eb88e04\"\n",
    "    params = {\n",
    "        \"name\":\"新建围栏\",\n",
    "        \"repeat\":\"Mon,Tues,Wed,Thur,Fri,Sat,Sun\",\n",
    "        \"center\":\"115.672126,38.817129\",\n",
    "        \"enable\":\"true\",\n",
    "        \"radius\":\"2000\",\n",
    "        \"valid_time\":\"2020-05-21\",\n",
    "        \"time\":\"06:00,18:00;20:00,23:59\",\n",
    "        \"alert_condition\":\"enter;leave\"\n",
    "    }\n",
    "    response = requests.post(url,json=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "geofence_update()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 151,
   "metadata": {},
   "outputs": [],
   "source": [
    "url=\"https://restapi.amap.com/v4/grasproad/driving?key=22aa7e82cf8054ef068c30624eb88e04\"\n",
    "def driving():\n",
    "    \"\"\"根据坐标点抓取道路，即根据给定的坐标点、车辆的方位角以及行驶速度，将用户的轨迹纠偏到路上，从而返回用户实际驾车经过的道路坐标。\"\"\"\n",
    "\n",
    "    body=[{\n",
    "    \"x\": 116.449429,\n",
    "    \"y\": 40.014844,\n",
    "    \"sp\": 4,\n",
    "    \"ag\": 110,\n",
    "    \"tm\": 1478831753\n",
    "    }, {\n",
    "    \"x\": 116.449639,\n",
    "    \"y\": 40.014776,\n",
    "    \"sp\": 3,\n",
    "    \"ag\": 110,\n",
    "    \"tm\": 23\n",
    "    }, {\n",
    "    \"x\": 116.449859,\n",
    "    \"y\": 40.014716,\n",
    "    \"sp\": 3,\n",
    "    \"ag\": 111,\n",
    "    \"tm\": 33\n",
    "    }, {\n",
    "    \"x\": 116.450074,\n",
    "    \"y\": 40.014658,\n",
    "    \"sp\": 3,\n",
    "    \"ag\": 110,\n",
    "    \"tm\": 31\n",
    "    }, {\n",
    "    \"x\": 116.450273,\n",
    "    \"y\": 40.014598,\n",
    "    \"sp\": 3,\n",
    "    \"ag\": 111,\n",
    "    \"tm\": 20\n",
    "    }]\n",
    "\n",
    "\n",
    "\n",
    "    r=requests.post(url=url,json=body).json()\n",
    "    \n",
    "    return r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 152,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'distance': 33.0,\n",
       "  'points': [{'x': 116.44942000249563, 'y': 40.014843356125866},\n",
       "   {'x': 116.44945705955585, 'y': 40.01453960973057}]},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 152,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "driving()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "应用：美食导航APP\n",
    "API应用：路径规划、搜索POI、关键字搜索、周边搜索\n",
    "场景：周末出游，外出旅游时\n",
    "路径规划可以让用户找到合适的路径到达目的地，关键字搜索能让用户快速找到自己想要的内容、周边搜索能在用户没有指定目标时向用户推荐。"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
